News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

codeblocks ! help

Started by guizlan, December 28, 2009, 04:04:19 PM

Previous topic - Next topic

guizlan

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 .

MortenMacFly

Quote from: guizlan on December 28, 2009, 04:04:19 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

guizlan

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

MortenMacFly

Quote from: guizlan on December 28, 2009, 07:26:20 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?
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

guizlan

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.




MortenMacFly

Quote from: guizlan on December 28, 2009, 08:24:01 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

killerbot


guizlan

thank you,

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


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

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





guizlan