News:

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

Main Menu

mingw32-g++.exe: error: unrecognized command line option '-pthreads'

Started by longmvu, June 08, 2013, 01:40:32 AM

Previous topic - Next topic

longmvu

mingw32-g++.exe -Wall -pipe -mthreads -Wno-attributes -std=gnu++0x -pthreads -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DwxUSE_UNICODE  -g -D__WXDEBUG__    -IC:\MinGW\include -IC:\MinGW\contrib\include -IC:\MinGW\lib\gcc_dll\mswud  -c C:\Users\user\Desktop\game1\game.cpp -o obj\Debug\game.o
mingw32-g++.exe: error: unrecognized command line option '-pthreads'
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings (0 minutes, 0 seconds)

That happens every time I try to build.

stahta01

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]


stahta01

Quote from: longmvu on June 08, 2013, 02:38:18 PM
Quote from: stahta01 on June 08, 2013, 02:11:54 AM
Remove the option that is NOT supported!

http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_I_would_like_to_compile_a_project_using_some_non-standard_libraries._How_can_I_indicate_to_CodeBlocks_that_these_libraries_and_include_files_exist.3F

Remember to check under the Linker and Compiler 'other' options tab.

Tim S.
What do I add?

YOU DO NOT ADD ANYTHING!!
You remove the wrong settings!!!!

Quoteunrecognized command line option '-pthreads'

Look for "pthreads" when you find it remove it.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]