Mail Archives: djgpp/1999/11/14/23:15:46
Make sure you compile your C++ sources with stabs. Go to Options|Compilers|Debugging menu option. Make sure to enable "-gstabs+" in the debugging flags window. Rebuild *all* your sources with this option. This should allow you to trace through structs, classes, and inline functions.
oOOo Synflod oOOo
--
On Sun, 14 Nov 1999 15:51:11 Adam Schrotenboer wrote:
>Another q for you, it looks like you're trying to use a struct in order
>to do a class. To be perfectly honest, I know little to nothing about
>classes, but that doesn't look right at all.
>
>Can anybody clear this up?? Is a struct necessary in this case??
>
>Regis DUPUY wrote:
>
>> Hi
>> The little program below wich is a c++ example for struct compile
>> and run but I can't trace it with F7 (rhide debugger)
>> it jumps over the first line : point a,b;
>> then it trace back ,then it stay at the same place and it ends
>> is it impossible to debug C++ program with rhide if those programs
>> have struct definitions ?
>>
>> #include <iostream.h>
>> struct point
>>
>> int x;
>> int y;
>> void initialise(int,int);
>> void deplace(int,int);
>> void affiche();
>> };
>> void point::initialise(int abs,int ord)
>> {x=abs;y=ord;}
>> void point::deplace(int dx,int dy)
>> {x+=dx;y+=dy;}
>> void point::affiche()
>> {cout <<"je suis en "<<x<<" "<<y<<"\n";}
>> int main()
>>
>> point a,b;
>> a.initialise(5,2);
>> a.affiche();
>> a.deplace(-2,4);
>> a.affiche();
>> b.initialise(1,-1);
>> b.affiche();
>> return 0;
>> }
>
>
Join 18 million Eudora users by signing up for a free Eudora Web-Mail account at http://www.eudoramail.com
- Raw text -