Code::Blocks Forums

User forums => Help => Topic started by: Jlbfunes on August 22, 2008, 09:15:58 pm

Title: Help Vista: Cannot start debugger; using C::B + Microsoft Visual C++
Post by: Jlbfunes on August 22, 2008, 09:15:58 pm
Hello Everyone.

I am a newbie and I don't have too much experience with compilers, linkers and others. I am trying to run a code. It compiled without problems, but there is an error when running so I need to debug it.
I tried to do it directly, but C::B complained saying that the debugger was not installed. Using the info in this thread http://forums.codeblocks.org/index.php/topic,8454.0.html, I was able to install the debugger. Now, I am having the same problem as the people there with the symbols (I don't even know what they mean by symbols). I downloaded all of them, update the environment variables but still no success.
Could anyone provide some advice about this particular problem or, in the worst case, recommend a better (simpler) pair of compiler + debugger for a completely desperate newbie under windows?  :(
Thanks in advance.
Title: Re: Help Vista: Cannot start debugger; using C::B + Microsoft Visual C++
Post by: Pecan on August 23, 2008, 12:08:35 am
CUNY CodeBlocks Student Manual
http://www.sci.brooklyn.cuny.edu/~goetz/codeblocks/codeblocks-instructions.pdf
Title: Re: Help Vista: Cannot start debugger; using C::B + Microsoft Visual C++
Post by: Jlbfunes on August 23, 2008, 12:27:49 am
Thank you. I will go through it in this weekend. I'll reply on Monday.
Title: Re: Help Vista: Cannot start debugger; using C::B + Microsoft Visual C++
Post by: Jlbfunes on August 23, 2008, 01:31:07 am
The document does not contain information on debugging using Microsoft Visual C++. There is a step-by-step explanation on how to debug a code, though. Thanks anyway.
Title: Re: Help Vista: Cannot start debugger; using C::B + Microsoft Visual C++
Post by: Jlbfunes on August 23, 2008, 02:25:01 am
I changed the compiler to the GNU GCC and now it doesn't work at all

Code
-------------- Build: Debug in test01 ---------------

Compiling: wvct.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: /EHsc: 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: /MDd: No such file or directory
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings

What is this? Can anyone give me a hint on this issue?  :(
Title: Re: Help Vista: Cannot start debugger; using C::B + Microsoft Visual C++
Post by: Jenna on August 23, 2008, 02:37:43 pm
If you change the compiler you also have to change the build options.

You try to use vcc options with gcc, that can not work.
Title: Re: Help Vista: Cannot start debugger; using C::B + Microsoft Visual C++
Post by: Jlbfunes on August 25, 2008, 03:43:32 am
You were right. I just created a new project with the same data and the gcc compiler in the build options and my code is running smoothly now. Thank you.

This thread is finished now.