+ 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 Odpowiedź
+ 1
You need set the option compilation like this. g++ -o myprogram -pthread source.cpp
6th Jan 2017, 10:44 PM
nextco
nextco - avatar