C++ toolkit 2003: debugging programs

From: ahnkle (email_at_no.address.uk)
Date: 08/19/04


Date: Thu, 19 Aug 2004 14:29:07 +0100


Hi,

I just downloaded the Microsoft Visual C++ Toolkit 2003. Installed fine,
compiles...

I tried compiling a progrma, but when I try to debug it, visual studio
v6 cant find any symbols.

==========source hello.cpp==========
#include <iostream>
using namespace std;

int
main(int argc, char** argv)
{
   cout << "Hello, world" << endl;
}
==========source ends===============

cl -EHsc -Zi hello.cpp /link /debug

It creates a hello.exe and hello.pdb.

any ideas?

ahnkle



Relevant Pages

  • Re: release build failed!!!
    ... I did a quick & dirty console project with your enum. ... It compiles fine with ... VC2005 using default debug and release settings. ... All errors are pointing to a single statement, ...
    (microsoft.public.vc.mfc)
  • Re: Debug mode wont build. Release does.
    ... The settings are Multi-Threaded Debug and Multi-Threaded for Debug and Release respectively. ... It compiles and links in Debug and Release. ...
    (microsoft.public.vc.ide_general)
  • Re: .net cf sp2 problem
    ... Usually when you tell VS to debug it compiles ... > system is Traditional Chinese. ... > White Rong ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: How to compile simple command prompt apps in VC++ .NET like in VC+
    ... Joachim wrote: ... You will have to create a [console app] project for it. ... If all you need is to test if some code compiles, ... file, compile, build, debug... ...
    (microsoft.public.vc.language)
  • Re: How can I develop in C with VS2005 for Pocket PC??
    ... Ok, I just have substitute in my C code the main function for WinMain, ... Now it compiles with 0 ... when I want to run it or debug it (at the moment I have only some ... yet nothing of Pocket PC) it appears like a pocket pc ...
    (microsoft.public.pocketpc.developer)