Author Topic: mingw32-g++.exe: /DEBUG: No such file or directory  (Read 19316 times)

Offline ABTOMAT

  • Single posting newcomer
  • *
  • Posts: 3
mingw32-g++.exe: /DEBUG: No such file or directory
« on: March 26, 2009, 12:50:42 pm »
Quote
-------------- Build: Debug in FBG ---------------

mingw32-g++.exe  -o "bin\Debug\FBG.exe" obj\Debug\main.o   /DEBUG  -lmsvcrtd.lib -lmsvcprtd.lib
mingw32-g++.exe: /DEBUG: No such file or directory
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
 

Hi all! Sorry for stupid question...
What file or directory is needed in the higlighted line? And how to make is start correct debugging?
I saw faq's, but haven't found answer on this question, google keeps silence too. :(
I use MinGW Compiler + CodeBlocks 8.02
Thanks for any answer!

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: mingw32-g++.exe: /DEBUG: No such file or directory
« Reply #1 on: March 26, 2009, 01:05:59 pm »
You should read the compilers (or in this case linkers) doc, before asking.
"/DEBUG" is not a valid parameter for gcc.

It uses "-g" instaed.
You should define it on the first page of the projects build-options in the compiler-flags tab.

A good way to start learning C::B is to use wizard-created project with debug and release target and have a look how it is done there.

Offline ABTOMAT

  • Single posting newcomer
  • *
  • Posts: 3
Re: mingw32-g++.exe: /DEBUG: No such file or directory
« Reply #2 on: March 26, 2009, 01:56:31 pm »
Thanks, i shall try!