Code::Blocks Forums

User forums => Help => Topic started by: Rukuy on January 06, 2017, 10:29:46 am

Title: Help!My codeblocks cannot build any C++ code
Post by: Rukuy on January 06, 2017, 10:29:46 am
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
Title: Re: Help!My codeblocks cannot build any C++ code
Post by: ravenspoint on January 06, 2017, 09:38:53 pm
Have you looked at, and followed, this help in the wiki?

http://wiki.codeblocks.org/index.php/Creating_a_new_project