Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22287

Unable to find pthread Eclipse GCC linker issue

$
0
0

I have tried all the other postings on this issue and can confirm I have set up in properties->c/c++ build->Settings->Cross G++ Linker the following:

  • -pthread in the linker flags in the Eclipse IDE
  • pthread in properties->c/c++ build->Settings->Cross G++ Linker -> Libraries.

Output fails as follows:

16:15:26 **** Incremental Build of configuration Debug for project Weatherly ****make all 'Building file: ../src/main.cpp''Invoking: Cross G++ Compiler'arm-linux-gnueabihf-g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/main.d" -MT"src/main.o" -o "src/main.o""../src/main.cpp"'Finished building: ../src/main.cpp''''Building target: Weatherly''Invoking: Cross G++ Linker'arm-linux-gnueabihf-g++ -pthread -Xlinker pthread -o "Weatherly"  ./src/DHT11.o ./src/main.o   -lwiringPi -lpthreadc:/sysgcc/raspberry/bin/../lib/gcc/arm-linux-gnueabihf/8/../../../../arm-linux-gnueabihf/bin/ld.exe: cannot find pthread: No such file or directorycollect2.exe: error: ld returned 1 exit statusmake: *** [Weatherly] Error 1"make all" terminated with exit code 2. Build might be incomplete.

Can someone suggest what might be wrong? Thanks!


Viewing all articles
Browse latest Browse all 22287

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>