News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Help!My codeblocks cannot build any C++ code

Started by Rukuy, January 06, 2017, 10:29:46 AM

Previous topic - Next topic

Rukuy

Error as follows:
||=== Build file: "no target" in "no project" (compiler: unknown) ===|
ld.exe||cannot find -lpthread|
||error: ld returned 1 exit status|
||=== Build failed: 2 error(s), 0 warning(s) (0 minute(s), 1 second(s)) ===|

The code is very simple:
#include <iostream>
using namespace std;
int main()
{
    cout << "Hello world!" << endl;
    return 0;
}

I am new,I donnot how to solve
Please help me.Thanks

ravenspoint