Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: guizlan on December 28, 2009, 04:04:19 pm

Title: codeblocks ! help
Post by: guizlan on December 28, 2009, 04:04:19 pm
hello


i have a problem with codeblocks 8.02 when i do "build" ,an error appear :


Compiling: main.c
cc1.exe: error: unrecognized command line option "-Wfatal-errors"
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings.


plaise help me , what can i do ?


thank you so much .
Title: Re: codeblocks ! help
Post by: MortenMacFly on December 28, 2009, 06:44:39 pm
cc1.exe: error: unrecognized command line option "-Wfatal-errors"
plaise help me , what can i do ?
The compiler you are using (which you did not tell) does not support that switch. So the solution is pretty simple: Don't use it! Disable the appropriate switch in the compiler options.
Title: Re: codeblocks ! help
Post by: guizlan on December 28, 2009, 07:26:20 pm
thank you

i do what you told me but an other error appear :


Compiling: C:\Program Files\Notepad++\pow.c
Execution of 'mingw32-g++.exe    -c "C:\Program Files\Notepad++\pow.c" -o "C:\Program Files\Notepad++\pow.o"' in 'C:\Documents and Settings\Administrateur\Menu Démarrer\Programmes\CodeBlocks' failed.
Nothing to be done.


here  :shock: i don't knew what can i do ?

thanks for your help
Title: Re: codeblocks ! help
Post by: MortenMacFly on December 28, 2009, 08:13:48 pm
Execution of 'mingw32-g++.exe    -c "C:\Program Files\Notepad++\pow.c" -o "C:\Program Files\Notepad++\pow.o"' [...]
That means exactly what's written in the message: C::B cannot find the mingw32-g++.exe executable (the MinGW C++ compiler). So either you did not install the compiler, or you did not setup the compiler directory correctly o your compiler setup somehow is screwed up.

What *exactly* did you install (which bundle)? What platform/OS are you using, what compiler did you install, what compiler version?
Title: Re: codeblocks ! help
Post by: guizlan on December 28, 2009, 08:24:01 pm
i install  MinGW 5.1.6 but the installation was not completed successfully  with an error :"failure reading from tarball".

i use platform windows xp and the os tiny-tux.



Title: Re: codeblocks ! help
Post by: MortenMacFly on December 28, 2009, 09:11:24 pm
but the installation was not completed successfully  with an error :"failure reading from tarball".
"Nice". :| So you did not succeed in installing the compiler and wonder why you get compiler errors...?! Now guess another time why that is... :roll:

Instead of using MinGW 5.1.6 you can try to obtain the packages needed (referenced in our C::B WiKi) from MinGW.org and unpack them yourself using e.g. 7-zip.
Title: Re: codeblocks ! help
Post by: killerbot on December 28, 2009, 09:23:34 pm
or get (non official) MinGW from here : http://www.tdragon.net/recentgcc/
Title: Re: codeblocks ! help
Post by: guizlan on December 28, 2009, 10:20:58 pm
thank you,

Quote
or get (non official) MinGW from here : http://www.tdragon.net/recentgcc/ (http://www.tdragon.net/recentgcc/)


but i don't knew which link i choose on this site http://www.tdragon.net/recentgcc/ (http://www.tdragon.net/recentgcc/).

can you help me , because i don't knew good the language "anglais",forgive-me.



Title: Re: codeblocks ! help
Post by: killerbot on December 28, 2009, 10:53:55 pm
http://sourceforge.net/projects/tdm-gcc/files/TDM-MinGW%20Installer/1.908.0/tdm-mingw-1.908.0-4.4.1-2.exe/download
Title: Re: codeblocks ! help
Post by: guizlan on December 29, 2009, 07:29:26 pm
thank you so much  :D.