 |
C++Talk.NET C++ language newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Linda Guest
|
Posted: Tue Feb 21, 2006 5:06 am Post subject: Why can't I use gdb? |
|
|
After I type "make" on the screen, I got the following result:
/usr/local/sunone/SUNWspro/bin/CC -xs -pto -PIC -xtarget=ultra
-xarch=v9 -DIL_STD -g -xs -DNDEBUG
-I/usr/local/ilog/solver60/include
-I/usr/local/ilog/solver60/../concert20/include
-I/usr/local/ilog/solver60/examples/include
/uac/rshr/xhji/Ilog/money.cpp -c
/usr/local/sunone/SUNWspro/bin/CC -xs -pto -PIC -xtarget=ultra
-xarch=v9 -DIL_STD -g -xs -DNDEBUG
-I/usr/local/ilog/solver60/include
-I/usr/local/ilog/solver60/../concert20/include
-I/usr/local/ilog/solver60/examples/include money.o -o money -g
-L/usr/local/ilog/solver60/lib/ultrasparc64_8_6.2/static_pic_mt
-L/usr/local/ilog/solver60/../concert20/lib/ultrasparc64_8_6.2/static_pic_mt
-lsolverfloat -lsolver -lconcert -lsocket -lnsl -lm -lsunmath
We can see that "-g" is there. But when I type "gdb money"(money is my
executable file name:)), I get:
GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as
"sparc-sun-solaris2.6"..."/data/a1/rshr/xhji/Ilog/money": not in
executable format: File format not recognized
So I cannot debug normally! Then what's wrong with it? How can I debug
with gdb or dbx normally?
Thanks! |
|
| Back to top |
|
 |
Fabien LE LEZ Guest
|
Posted: Tue Feb 21, 2006 6:06 am Post subject: Re: Why can't I use gdb? |
|
|
Please post messages written in English on comp.lang.c++. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|