Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
How to use gdb Debugger for C programming?
My code was working an hour ago.
when i compiled minute ago it shows this error
gcc -g -lm -ansi -Wall -pedantic pms.o pms_options.o pms_utility.o -o pms
Undefined first referenced
symbol in file
generate pms.o
ld: fatal: Symbol referencing errors. No output written to pms
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `all'
is there any way to debug for this error using gdb??
Thanks alot
1 Answer
- fraggle_uk_ukLv 51 decade agoFavorite Answer
No. gdb is for debugging the program while it is running. What you have is a compile time (actually linker) error.
It looks like the program references a symbol (ie. variable or function) that you haven't implemented. Eg. if you have some code calling a function foo() and there is no foo() function defined in your program.