Hello everybody
I try to use gdb to debug my program
but i have this message :
---------------------------
GNU gdb 5.3
Copyright 2002 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 "i686-pc-linux-gnu"...(no debugging symbols found)...
------------------------------
When I type bt I have not informations, just that :
----------------------------------
#0 0x08053bd3 in strcpy ()
#1 0x081038c8 in ?? ()
#2 0x08051984 in strcpy ()
#3 0x0804dfe0 in strcpy ()
#4 0x0805aa73 in strcpy ()
#5 0x420158d4 in __libc_start_main () from /lib/i686/libc.so.6
------------------------------------------------
not very helpful ;)
I can copy my Makefile to show and tell me where I am wrong:
------------------------------------------------------
### PROJECT MAKEFILE ##
EXEC := gwrap
LIBS := ireader owriter
### DO NOT EDIT PAST THIS POINT ###
# compiler flags
export CXX := g++
export CXXFLAGS := -g -Wall -O2
LDFLAGS := -s
CPPFLAGS := $(foreach lib,$(LIBS),-I$(lib))
RM := rm -f
# files
SRCS := $(wildcard *.cpp)
OBJS := $(SRCS:.cpp=.o)
ALIBS := $(foreach lib,$(LIBS),$(lib)/$(lib).a)
# Windows specific
ifeq ($(OS), Windows_NT)
RM := del
EXEC := $(EXEC).exe
ALIBS := $(subst /,\,$(ALIBS))
endif
# link
all: $(OBJS) $(ALIBS)
$(CXX) $(CXXFLAGS) $(LDFLAGS) -o $(EXEC) $^
# library archive
%.a:
$(MAKE) $@ -C $(*D)
# depend
..PHONY: depend
depend:
$(CXX) -MM $(CXXFLAGS) $(CPPFLAGS) $(SRCS) >$@
-include depend
# clean
mostlyclean:
$(RM) $(OBJS) $(EXEC) depend
clean:
$(RM) $(OBJS) $(ALIBS) $(EXEC) depend
------------------------------------------------------
Thanks a lot
R.