Author Topic: Help!My codeblocks cannot build any C++ code  (Read 3472 times)

Rukuy

  • Guest
Help!My codeblocks cannot build any C++ code
« 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

Offline ravenspoint

  • Multiple posting newcomer
  • *
  • Posts: 16
Re: Help!My codeblocks cannot build any C++ code
« Reply #1 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