Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: Cinolt on August 15, 2010, 02:29:08 am
-
I have a wxWidgets project and when I have -Wfatal-errors as one of my compile options then it gives this error:
cc1plus.exe: error: unrecognized command line option "-Wfatal-errors"
Process terminated with status 1 (0 minutes, 1 seconds)
0 errors, 0 warnings
How can I fix this?
-
Install/use/setup a compiler that supports that option.
-
What do you recommend?
-
TDM build of MinGW GCC works good for me; I would use his newest 4.4 build; the new 4.5 build is not as stable yet.
You could also use the one that is packaged with Code::Blocks 10.05.
Tim S.
-
I am using the one packaged with Code::Blocks 10.05.
-
1. Turn on Full Compiler Logging
http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F
2. Verify the compiler you are using by checking the installation directory under the toolchain configuation.
http://wiki.codeblocks.org/index.php?title=Installing_a_supported_compiler#Compiler-neutral_setup_steps
I tested your "-Wfatal-errors" and it worked for me using the MinGW packaged with CB 10.05 "gcc version 4.4.1 (TDM-2 mingw32)"
Note: My install is not a standard way(uses non-standard paths); but it should make no difference.
Tim S.
-
mingw32-g++.exe -Wfatal-errors -Wall -DWXUSINGDLL -DwxUSE_UNICODE -DWX_PRECOMP -g -IC:\wxWidgets-2.8.11\include -IC:\wxWidgets-2.8.11\lib\gcc_dll\mswu -c "C:\Project\frame.cpp" -o obj\Debug\frame.o
I actually was mistaken in saying that I used the MinGW that came with C::B. I'm using MinGW version 5.1.6 found here: http://sourceforge.net/projects/mingw/files/
But for something as simple as halting compilation after the first error is found shouldn't be an issue with versions should it?
-
mingw32-g++.exe -Wfatal-errors -Wall -DWXUSINGDLL -DwxUSE_UNICODE -DWX_PRECOMP -g -IC:\wxWidgets-2.8.11\include -IC:\wxWidgets-2.8.11
But for something as simple as halting compilation after the first error is found shouldn't be an issue with versions should it?
The message you got said the compiler did NOT support that option.
Tim S.
-
Ok, I installed the latest TDM GCC and it works now. I had my head wrapped around it being a wxWidgets specific issue for some reason.