Author Topic: mingw32-g++.exe: error: unrecognized command line option '-pthreads'  (Read 24826 times)

Offline longmvu

  • Single posting newcomer
  • *
  • Posts: 2
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.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
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


Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: mingw32-g++.exe: error: unrecognized command line option '-pthreads'
« Reply #3 on: June 08, 2013, 03:47:15 pm »
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!!!!

Quote
unrecognized command line option '-pthreads'

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

Tim S.
« Last Edit: June 08, 2013, 03:48:48 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