Cross Compile TK1 application libpThread error

I am building an application for my Jetson TK1 and I am trying to use boost threads and mutexes. When I try to build my program I get the following message:

/usr/lib/gcc-cross/arm-linux-gnueabihf/4.8/…/…/…/…/arm-linux-gnueabihf/bin/ld: ./main.o: undefined reference to symbol ‘pthread_mutexattr_init@@GLIBC_2.4
/usr/arm-linux-gnueabihf/lib/ error adding symbols: DSO missing from command line

I’m not sure what DSO is missing? I can find /usr/arm-linix-gnueabihf/lib/ Usually the linker tells what library is missing?

Hi StingWa, Please google “–no-copy-dt-needed-entries” to see if any help information.

I am using eclipse and I can’t find a way to have issue this switch?

Please figure out how to configure linker options in eclipse environment.