[cfe-dev] linker errors on Mac building with _LIBCPP_DEBUG2==1
Eric Hill
Eric.Hill at jmp.com
Thu Aug 29 11:51:22 PDT 2013
Hey,
Not entirely sure this is the right place to ask this question, but it's all I've found, and there is a page here about debug support.
I'm using XCode 4.6.3 on Mac. When I build my C++ project with _LIBCPP_DEBUG2 set to 1, I get linker errors like these:
"std::__1::__libcpp_db::__comparable(void const*, void const*) const", referenced from:
NSString* (anonymous namespace)::dump<double>(NSString*, double*, int vector[4]) in vMAT_Array+UnaryOps.o
NSString* (anonymous namespace)::dump<float>(NSString*, float*, int vector[4]) in vMAT_Array+UnaryOps.o
signed char (anonymous namespace)::isEqualEpsilon<double>(double*, int vector[4], double*, int vector[4], double) in vMAT_Array+BinaryOps.o
signed char (anonymous namespace)::isEqualEpsilon<float>(float*, int vector[4], float*, int vector[4], double) in vMAT_Array+BinaryOps.o
"std::__1::__libcpp_db::__dereferenceable(void const*) const", referenced from:
NSString* (anonymous namespace)::dump<double>(NSString*, double*, int vector[4]) in vMAT_Array+UnaryOps.o
NSString* (anonymous namespace)::dump<float>(NSString*, float*, int vector[4]) in vMAT_Array+UnaryOps.o
signed char (anonymous namespace)::isEqualEpsilon<double>(double*, int vector[4], double*, int vector[4], double) in vMAT_Array+BinaryOps.o
signed char (anonymous namespace)::isEqualEpsilon<float>(float*, int vector[4], float*, int vector[4], double) in vMAT_Array+BinaryOps.o
Seems like I need to link in a different lib or something, but darned if I can figure out what. Any ideas?
This question was asked on StackOverflow (by someone else) in April and has gone unanswered.
Thanks,
Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130829/6325f68f/attachment.html>
More information about the cfe-dev
mailing list