User forums > Help

Toolchain executables: correct, but unable to debug

<< < (2/3) > >>

killerbot:
could you post the contents of your project file (the .cbp file that is) ?
And could you post a snippet from your default.conf [that's the Code::Blocks configuration file], inside this big file you will find a section compilers, within that section a section gcc, post here the entire stuff in that gcc section ?

ParanoidAndroid:
Here's all the info that you wanted, except that you may be on to something as there is no default.conf file within the Codeblocks directory structure (or in MINGW directories)... I also noticed that I had Microsoft Visual C++ 2005/2008 selected as the compilier and not CNU GCC Compilier. Now the game doesnt compile, but I feel I may be on the right track?

New build output...
-------------- Build: Debug in skeleton ---------------

Compiling: main.cpp
mingw32-g++.exe: /W3: No such file or directory
mingw32-g++.exe: /Zi: No such file or directory
mingw32-g++.exe: /D_DEBUG: No such file or directory
mingw32-g++.exe: /Zi: No such file or directory
mingw32-g++.exe: /D_DEBUG: No such file or directory
mingw32-g++.exe: CreateProcess: No such file or directory
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings

/////////////////////////////////////////////////////////////////////
// PROJECT FILE
////////////////////////////////////////////////////////////////////
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
   <FileVersion major="1" minor="6" />
   <Project>
      <Option title="skeleton" />
      <Option pch_mode="2" />
      <Option compiler="gcc" />
      <Build>
         <Target title="Debug">
            <Option output="bin\Debug\skeleton" prefix_auto="1" extension_auto="1" />
            <Option object_output="obj\Debug\" />
            <Option type="1" />
            <Option compiler="gcc" />
            <Compiler>
               <Add option="/Zi /D_DEBUG" />
               <Add option="/Zi" />
               <Add option="/D_DEBUG" />
            </Compiler>
            <Linker>
               <Add option="/DEBUG" />
               <Add library="alleg" />
            </Linker>
         </Target>
         <Target title="Release">
            <Option output="bin\Release\skeleton" prefix_auto="1" extension_auto="1" />
            <Option object_output="obj\Release\" />
            <Option type="1" />
            <Option compiler="gcc" />
            <Compiler>
               <Add option="/Ox" />
               <Add option="/DNDEBUG" />
            </Compiler>
            <Linker>
               <Add library="alleg" />
            </Linker>
         </Target>
      </Build>
      <Compiler>
         <Add option="/W3" />
      </Compiler>
      <Linker>
         <Add library="alleg" />
      </Linker>
      <Unit filename="gameData.h" />
      <Unit filename="geoClass.cpp" />
      <Unit filename="geoClass.h" />
      <Unit filename="hardcoded.h" />
      <Unit filename="loadData.h" />
      <Unit filename="main.cpp" />
      <Unit filename="main.h" />
      <Unit filename="messageClass.cpp" />
      <Unit filename="messageClass.h" />
      <Unit filename="renderClass.cpp" />
      <Unit filename="renderClass.h" />
      <Unit filename="setup.h" />
      <Unit filename="skeleton.layout" />
      <Unit filename="soundClass.cpp" />
      <Unit filename="soundClass.h" />
      <Unit filename="spriteClass.cpp" />
      <Unit filename="spriteClass.h" />
      <Unit filename="spriteHandler.h" />
      <Unit filename="spritehandler.cpp" />
      <Extensions>
         <code_completion />
         <debugger />
      </Extensions>
   </Project>
</CodeBlocks_project_file>





Sorry this is kind of a rushed reply, but I'm having to juggle this with packing the car for the holiday and the wife shouting at me ;)
Thanks for the help guys!

killerbot:
As for the fact it does not compile now, that's normal you are specifying MS compiler options to GCC :


--- Code: ---               <Add option="/Zi /D_DEBUG" />
               <Add option="/Zi" />
               <Add option="/D_DEBUG" />

               <Add option="/DEBUG" />

               <Add option="/Ox" />
               <Add option="/DNDEBUG" />

         <Add option="/W3" />

--- End code ---

Tip : just create in CB a new console project, and then have a look at the cbp on which compiler options to activate: Purely -g -o2 etc ..


So your mix of Ms compiler (which wants another debugger) and gdb.exe could explain why you could not debug.

ParanoidAndroid:
So very close now I think!....
I'm just not sure about this one :(

-------------- Build: Debug in skel ---------------

Compiling: main.cpp
mingw32-g++.exe: CreateProcess: No such file or directory
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings


///////////////////////////////////////////////////////////////
Project File Contents

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
   <FileVersion major="1" minor="6" />
   <Project>
      <Option title="skel" />
      <Option pch_mode="2" />
      <Option compiler="gcc" />
      <Build>
         <Target title="Debug">
            <Option output="bin\Debug\skel" prefix_auto="1" extension_auto="1" />
            <Option object_output="obj\Debug\" />
            <Option type="1" />
            <Option compiler="gcc" />
            <Compiler>
               <Add option="-g" />
            </Compiler>
            <Linker>
               <Add library="alleg" />
            </Linker>
         </Target>
         <Target title="Release">
            <Option output="bin\Release\skel" prefix_auto="1" extension_auto="1" />
            <Option object_output="obj\Release\" />
            <Option type="1" />
            <Option compiler="gcc" />
            <Compiler>
               <Add option="-O2" />
            </Compiler>
            <Linker>
               <Add option="-s" />
               <Add library="alleg" />
            </Linker>
         </Target>
      </Build>
      <Compiler>
         <Add option="-Wall" />
         <Add option="-fexceptions" />
      </Compiler>
      <Linker>
         <Add library="alleg" />
      </Linker>
      <Unit filename="gameData.h" />
      <Unit filename="geoClass.cpp" />
      <Unit filename="geoClass.h" />
      <Unit filename="hardcoded.h" />
      <Unit filename="loadData.h" />
      <Unit filename="main.cpp" />
      <Unit filename="main.h" />
      <Unit filename="messageClass.cpp" />
      <Unit filename="messageClass.h" />
      <Unit filename="renderClass.cpp" />
      <Unit filename="renderClass.h" />
      <Unit filename="setup.h" />
      <Unit filename="skeleton.cbp" />
      <Unit filename="soundClass.cpp" />
      <Unit filename="soundClass.h" />
      <Unit filename="spriteClass.cpp" />
      <Unit filename="spriteClass.h" />
      <Unit filename="spriteHandler.h" />
      <Unit filename="spritehandler.cpp" />
      <Unit filename="textClass.cpp" />
      <Unit filename="textClass.h" />
      <Extensions>
         <code_completion />
         <debugger />
      </Extensions>
   </Project>
</CodeBlocks_project_file>

MortenMacFly:

--- Quote from: ParanoidAndroid on August 05, 2009, 01:24:56 pm ---mingw32-g++.exe: CreateProcess: No such file or directory

--- End quote ---
Search the forums.
You are on Vista and need to update the tool chain. When 08/02 came out the gcc 3.4.5 - 3 (vista special) was not available. This is a known bug on Vista for the compiler version that ships with 08/02.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version