gstabs with objectfiles

2 posts / 0 new
Last post
JosDuchIt
JosDuchIt's picture
Offline
Last seen: 8 years 3 days ago
Joined: 2012-01-08 20:57
gstabs with objectfiles

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 ?

corto
corto's picture
Offline
Last seen: 7 years 9 months ago
Joined: 2011-09-09 11:43
I would say that you must

I would say that you must compile AND link with -gstabs. Symbols are generated in objects files at compilation time.

Log in or register to post comments