C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Why can't I use gdb?

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ (French)
View previous topic :: View next topic  
Author Message
Linda
Guest





PostPosted: Tue Feb 21, 2006 5:06 am    Post subject: Why can't I use gdb? Reply with quote



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_m­t

-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





PostPosted: Tue Feb 21, 2006 6:06 am    Post subject: Re: Why can't I use gdb? Reply with quote



Please post messages written in English on comp.lang.c++.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ (French) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.