From: Tim R. <gu...@ec...> - 2007-09-13 20:26:23
|
hi i know i'm doing something stupid, i'm trying to compile my c++ project for gumstix using a makefile (for the 1st time ever) in order to use the cross-compile toolchain. after squashing swathes of errors one by one, i'm now getting a weird one invoking posix threads: undefined reference to `pthread_create' even though I have put the options CXXFLAGS += -lpthread CXXFLAGS += -pthread in the makefile and I can compile the project for x86-linux using g++ -pthread foo foo.cpp looking closely at the output from make, I see that arm-linux-uclibcgnueabi-g++: -lpthread: linker input file unused because linking not done does anyone understand this situation? Is there a way to enable threads in the cross compiler toolchain? thanks! Tim |