pthread missing in code::blocks | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 1

pthread missing in code::blocks

So, I downloaded code:blocks (nosetup one) and followed the instructions to the point where I wanted to "build and run" Hello World, but it says Fatal error, -Ipthread is missing.... any suggestions?

20th Nov 2016, 7:55 PM
Sauwen
Sauwen - avatar
1 Antwort
+ 1
You need set the option compilation like this. g++ -o myprogram -pthread source.cpp
6th Jan 2017, 10:44 PM
nextco
nextco - avatar