News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

wxWidgets -Wfatal-errors doesn't work

Started by Cinolt, August 15, 2010, 02:29:08 AM

Previous topic - Next topic

Cinolt

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?

stahta01

Install/use/setup a compiler that supports that option.
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]

Cinolt


stahta01

#3
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.
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]

Cinolt

I am using the one packaged with Code::Blocks 10.05.

stahta01

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

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]

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?

The message you got said the compiler did NOT support that option.

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]

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.