Yahoo Clever wird am 4. Mai 2021 (Eastern Time, Zeitzone US-Ostküste) eingestellt. Ab dem 20. April 2021 (Eastern Time) ist die Website von Yahoo Clever nur noch im reinen Lesemodus verfügbar. Andere Yahoo Produkte oder Dienste oder Ihr Yahoo Account sind von diesen Änderungen nicht betroffen. Auf dieser Hilfeseite finden Sie weitere Informationen zur Einstellung von Yahoo Clever und dazu, wie Sie Ihre Daten herunterladen.
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 Antwort
- fraggle_uk_ukLv 5vor 1 JahrzehntBeste Antwort
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.