Error while cross compilation. arm-linux-gnueabihf-g++: error: ‐pthread: No such file or directory

104 views
Skip to first unread message

Hemant Kapoor

unread,
Jan 28, 2017, 3:23:08 PM1/28/17
to BeagleBoard
Hello All,

I am using eclipse Luna to perform cross compilation of C++ project for beaglebone black target.
for the same I am using g++-4.9-arm-linux-gnueabihf.

I am trying to use C++ 11 std::thread and have linker flag to be -pthread.

But the linker is giving me below issues:

Building target: testArm
Invoking: Cross G++ Linker
arm-linux-gnueabihf-g++ ‐pthread -o "testArm"  ./src/ledControl.o ./src/testArm.o  
makefile:45: recipe for target 'testArm' failed
arm-linux-gnueabihf-g++: error: ‐pthread: No such file or directory
make: *** [testArm] Error 1

Can anyone help with it.
Reply all
Reply to author
Forward
0 new messages