* String class and gdb
@ 1998-10-17 8:30 Derek Tyler
1998-10-18 20:47 ` Mumit Khan
0 siblings, 1 reply; 2+ messages in thread
From: Derek Tyler @ 1998-10-17 8:30 UTC (permalink / raw)
To: GNU Mailing list
I've just started trying to use the
String class. The following code works
OK, but when I put a breakpoint as
shown, and try to examine variables
with
gdb, I get
(gdb) p s
$1 = <incomplete type>
#include <String.h>
int main()
{
String s ;
s = "Hello";
String t = " world";
String v = s + t;
breakpoint
cout << v << endl;
return 0;
}
D Tyler
dtyler@easynet.co.uk
D Tyler
dtyler@easynet.co.uk
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: String class and gdb
1998-10-17 8:30 String class and gdb Derek Tyler
@ 1998-10-18 20:47 ` Mumit Khan
0 siblings, 0 replies; 2+ messages in thread
From: Mumit Khan @ 1998-10-18 20:47 UTC (permalink / raw)
To: dtyler; +Cc: GNU Mailing list
"Derek Tyler" <dtyler@easynet.co.uk> writes:
> I've just started trying to use the
> String class. The following code works
> OK, but when I put a breakpoint as
> shown, and try to examine variables
> with
> gdb, I get
>
> (gdb) p s
> $1 = <incomplete type>
>
That's because libg++ was stripped of all symbols. You simply can't "look"
into String implementation any more. Sorry.
I do suggest that you dump String and use the standard "string" from now
on. String is part of deprecated libg++, which you should avoid at all
costs in new code.
Regards,
Mumit
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1998-10-18 20:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-10-17 8:30 String class and gdb Derek Tyler
1998-10-18 20:47 ` Mumit Khan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).