arm-elf-g++ -o main -I/usr/local/arm_tools/arm-elf/include -O2 -fomit-frame-pointer -fno-builtin -fpic -msingle-pic-base -Wl,-elf2flt -lc -lgcc -lcrypt -L/usr/local/arm_tools/arm-elf/lib -L/usr/local/arm_tools/lib/gcc-lib/arm-elf/3.3.4 -lpthread -lapp -L../lib main.cpp Thread.cpp ThreadMonitor.cpp ProducerConsumer.cpp app.cpp adrport.cpp
In file included from /usr/local/arm_tools/include/c++/3.3.4/backward/iostream.h:31,
from ProducerConsumer.h:16,
from main.cpp:7:
/usr/local/arm_tools/include/c++/3.3.4/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
In file included from /usr/local/arm_tools/include/c++/3.3.4/backward/iostream.h:31,
from ProducerConsumer.h:16,
from ProducerConsumer.cpp:7:
/usr/local/arm_tools/include/c++/3.3.4/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
ProducerConsumer.cpp: In member function `virtual void Producer::run()':
ProducerConsumer.cpp:110: warning: passing `double' for converting 1 of `static
void Thread::sleep(long unsigned int)'
ProducerConsumer.cpp: In member function `virtual void Consumer::run()':
ProducerConsumer.cpp:138: warning: passing `double' for converting 1 of `static
void Thread::sleep(long unsigned int)'
main.elf2flt(.text+0x394):/Temp/make-compile/arm-tool/arm-elf-gcc/arm-elf/libstdc++-v3/include/bits/locale_facets.tcc:158: undefined reference to `pthread_create'
main.elf2flt(.text+0x3bc):/Temp/make-compile/arm-tool/arm-elf-gcc/arm-elf/libstdc++-v3/include/arm-elf/bits/gthr-default.h:514: undefined reference to `pthread_cancel'
main.elf2flt(.text+0x404):/Temp/make-compile/arm-tool/arm-elf-gcc/arm-elf/libstdc++-v3/include/arm-elf/bits/atomicity.h:52: undefined reference to `pthread_join'
main.elf2flt(.text+0x2d14):/Temp/make-compile/arm-tool/gcc-3.3.4/libstdc++-v3/src/ios.cc:247: undefined reference to `pthread_create'
main.elf2flt(.text+0x33d8):/Temp/make-compile/arm-tool/gcc-3.3.4/libstdc++-v3/src/ios.cc:360: undefined reference to `pthread_create'
main.elf2flt(.text+0x3530):/Temp/make-compile/arm-tool/gcc-3.3.4/libstdc++-v3/src/locale.cc:163: undefined reference to `pthread_create'
main.elf2flt(.text+0x3648):/Temp/make-compile/arm-tool/gcc-3.3.4/libstdc++-v3/src/locale.cc:163: undefined reference to `pthread_create'
main.elf2flt(.text+0x36b4):/Temp/make-compile/arm-tool/gcc-3.3.4/libstdc++-v3/src/locale.cc:166: undefined reference to `pthread_create'
main.elf2flt(.text+0x3720):/Temp/make-compile/arm-tool/gcc-3.3.4/libstdc++-v3/src/locale.cc:166: more undefined references to `pthread_create' follow
collect2: ld returned 1 exit status
make: *** [main] Error 1