If you complie separately say 3 components to objectfiles
gcc -c file1.c
gcc -c file2.c
gcc -c file3.c
is the following commandline correct
gcc file1.0 file2.o file3.o -gstabs -o myapp
or do i have to use -gstabs also in 3 first compilatoons ?
Fri, 2012-07-27 19:03
#1
gstabs with objectfiles
I would say that you must compile AND link with -gstabs. Symbols are generated in objects files at compilation time.