Author Topic: codeblocks ! help  (Read 8350 times)

Offline guizlan

  • Single posting newcomer
  • *
  • Posts: 8
codeblocks ! help
« 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 .

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: codeblocks ! help
« Reply #1 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline guizlan

  • Single posting newcomer
  • *
  • Posts: 8
Re: codeblocks ! help
« Reply #2 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

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: codeblocks ! help
« Reply #3 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?
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline guizlan

  • Single posting newcomer
  • *
  • Posts: 8
Re: codeblocks ! help
« Reply #4 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.




Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: codeblocks ! help
« Reply #5 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5496
Re: codeblocks ! help
« Reply #6 on: December 28, 2009, 09:23:34 pm »
or get (non official) MinGW from here : http://www.tdragon.net/recentgcc/

Offline guizlan

  • Single posting newcomer
  • *
  • Posts: 8
Re: codeblocks ! help
« Reply #7 on: December 28, 2009, 10:20:58 pm »
thank you,

Quote
or 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.




Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5496

Offline guizlan

  • Single posting newcomer
  • *
  • Posts: 8
Re: codeblocks ! help
« Reply #9 on: December 29, 2009, 07:29:26 pm »
thank you so much  :D.