This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
undefined reference to libquadmath routines
- From: Syed Bilal Mehdi <bilal dot mehdi87 at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 7 Jun 2011 02:40:58 -0700 (PDT)
- Subject: undefined reference to libquadmath routines
I just got gcc 4.6 built successfully. I was trying libquadmath with the
following test code:
http://gcc.gnu.org/onlinedocs/libquadmath/quadmath_005fsnprintf.html#quadmath_005fsnprintf
but I get the following errors:
/site/ae/shares/MotionLab/papers/pingpong/examples/LongDoublePrecisionTests/test.cpp:13:
undefined reference to `sqrtq(__float128)'
/site/ae/shares/MotionLab/papers/pingpong/examples/LongDoublePrecisionTests/test.cpp:14:
undefined reference to `quadmath_snprintf(char*, unsigned int, char const*,
...)'
/site/ae/shares/MotionLab/papers/pingpong/examples/LongDoublePrecisionTests/test.cpp:18:
undefined reference to `quadmath_snprintf(char*, unsigned int, char const*,
...)'
/site/ae/shares/MotionLab/papers/pingpong/examples/LongDoublePrecisionTests/test.cpp:22:
undefined reference to `quadmath_snprintf(char*, unsigned int, char const*,
...)'
/site/ae/shares/MotionLab/papers/pingpong/examples/LongDoublePrecisionTests/test.cpp:28:
undefined reference to `quadmath_snprintf(char*, unsigned int, char const*,
...)'
/site/ae/shares/MotionLab/papers/pingpong/examples/LongDoublePrecisionTests/test.cpp:18:
undefined reference to `quadmath_snprintf(char*, unsigned int, char const*,
...)'
What am I missing here. I tried specifying -lquadmath but that didn't help!!
--
View this message in context: http://old.nabble.com/undefined-reference-to-libquadmath-routines-tp31790381p31790381.html
Sent from the gcc - Help mailing list archive at Nabble.com.