I'm having trouble viewing the contents of a complex<double> variable
with gdb. When the program is compiled with g++ -ggdb, version 3.0 of
g++/gcc, I get the following:

Breakpoint 1, main () at testdbg.cc:5
5               std::complex<double> j(0.0, 1.0);
(gdb) n
6               std::cout << j << '\n';
(gdb) p j
$1 = {_M_value = Invalid C/C++ type code 20 in symbol table.
(gdb) 


Is there another flag I should be using in compiling?
-- 
James C. West (Jim)                       [EMAIL PROTECTED]
Professor                                 [EMAIL PROTECTED]
Electrical and Computer Engineering
Oklahoma State University

_______________________________________________
Bug-gdb mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-gdb

Reply via email to