bug-gdb
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

The init.c problem puzzled me for a while, however you are missing one


From: John Ward
Subject: The init.c problem puzzled me for a while, however you are missing one simple ingredient Ensure you have ddd installed correctly, i.e. when you type ddd on it's own ddd runs. Then simply compile you C++ program using g++ with the -g flag, i.e.: g++ -g -o main main.init.c Solution
Date: Thu, 11 Oct 2001 18:47:17 +0100

The init.c problem puzzled me for a while, however you are missing one simple ingredient, this is how I got round it:

Ensure you have ddd installed correctly, i.e. when you type ddd on it's own ddd runs. Then simply compile you C++ program using g++ with the -g (debug) flag, i.e.:

$ g++ -g -o main main.cc

then enter:

$ ddd main

This should work...

init.c is the function which runs your program, i.e. it calls main() (presumably when your using debug information), this is contained within the g++ (or c++) libraries.

Regards

John

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
John Ward
E-Mail: address@hidden
 
reply via email to

[Prev in Thread] Current Thread [Next in Thread]