User forums > Using Code::Blocks
wxWidgets -Wfatal-errors doesn't work
stahta01:
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.
Cinolt:
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?
stahta01:
--- Quote from: Cinolt on August 15, 2010, 04:44:13 am ---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?
--- End quote ---
The message you got said the compiler did NOT support that option.
Tim S.
Cinolt:
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.
Navigation
[0] Message Index
[*] Previous page
Go to full version