delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/10/17/19:09:24

From: dtyler AT easynet DOT co DOT uk (Derek Tyler)
Subject: String class and gdb
17 Oct 1998 19:09:24 -0700 :
Message-ID: <199810171523.IAA05939.cygnus.gnu-win32@cygnus.com>
Reply-To: <dtyler AT easynet DOT co DOT uk>
Mime-Version: 1.0
To: "GNU Mailing list" <gnu-win32 AT cygnus DOT com>

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 AT easynet DOT co DOT uk



D Tyler

dtyler AT easynet DOT co DOT uk
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019