Web lists-archives.com

[Mingw-users] GCC doesn't work "ld.exe: cannot find -lpthread"




Hey folks,
I just installed MinGW using mingw-get-setup.exe and installed 
mingw32-base, I then added the MinGW bin folder to my user PATH.
To test gcc I created a simple hello world C program.
However when I run "gcc test.c" it doesn't compile and I get the 
following error:

c:/_programs/mingw/bin/../lib/gcc/mingw32/5.3.0/../../../../mingw32/bin/ld.exe: 
cannot find -lpthread
collect2.exe: error: ld returned 1 exit status

gcc -v:
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=c:/_programs/mingw/bin/../libexec/gcc/mingw32/5.3.0/lto-wrapper.exe
Target: mingw32
Configured with: ../src/gcc-5.3.0/configure --build=x86_64-pc-linux-gnu 
--host=mingw32 --prefix=/mingw --disable-win32-registry --target=mingw32 
--with-arch=i586 --enable-languages=c,c++,objc,obj-c++,fortran,ada 
--enable-static --enable-shared --enable-threads=posix --with-dwarf2 
--disable-sjlj-exceptions --enable-version-specific-runtime-libs 
--enable-libstdcxx-debug --with-tune=generic --enable-libgomp 
--disable-libvtv --enable-nls
Thread model: posix
gcc version 5.3.0 (GCC)

ld -v:
GNU ld (GNU Binutils) 2.25.1

ld -lpthread:
ld: cannot find -lpthread

I am using Windows 7 64-bit and the latest MinGW. I would appreciate any 
help.

Regards,
entwikelaar

------------------------------------------------------------------------------
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@xxxxxxxxxxxxxxxxxxxxx?subject=unsubscribe