"Linda" <[EMAIL PROTECTED]> writes:

> So I cannot debug normally. But if I change CCC to g++, gdb can work
> normally. So is the version of the compiler is crucial for gdb? 

No, it's not. However you should read "man CC", and pay extra
attention to the '-xs' flag.

Also note that 'gdb' doesn't understand SunCC's name mangling too
well, so if you are going to use SunCC for C++ code, you'll be
better off using Sun's dbx as well.

> And how can I make gdb work normally? 

Add '-xs' to your compile line.

Cheers,
-- 
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
_______________________________________________
Help-gplusplus mailing list
Help-gplusplus@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gplusplus

Reply via email to