User forums > Help

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

(1/1)

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:
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.

longmvu:

--- 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.

--- End quote ---
What do I add?

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.

--- End quote ---
What do I add?

--- End quote ---

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


--- Quote ---unrecognized command line option '-pthreads'
--- End quote ---

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

Tim S.

Navigation

[0] Message Index

Go to full version