Author Topic: Help!  (Read 2433 times)

ming

  • Guest
Help!
« on: September 04, 2016, 07:51:14 pm »
So I just started programming with C, but I received this error message, and I'm not sure how to fix it? Thanks for helping out!

"-------------- Build: Debug in HelloWorld (compiler: GNU GCC Compiler)---------------

mingw32-g++.exe  -o bin\Debug\HelloWorld.exe obj\Debug\main.o   
c:/mingw/bin/../lib/gcc/mingw32/5.3.0/../../../../mingw32/bin/ld.exe: cannot find -lpthread
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (0 minute(s), 0 second(s))
2 error(s), 0 warning(s) (0 minute(s), 0 second(s)) "
 
The code is just the basic Hello World,
"#include <stdio.h>
#include <stdlib.h>

int main()
{
    printf("Hello world!\n");
    return 0;
}
"

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Help!
« Reply #1 on: September 04, 2016, 08:15:28 pm »
« Last Edit: September 04, 2016, 10:59:46 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org