If I get a warning that gives the output object file with a number (eg, a.out:3415) what does this number refer to?
If I get a warning that gives the output object file with a number (eg, a.out:3415) what does this number refer to?
C programming resources:
GNU C Function and Macro Index -- glibc reference manual
The C Book -- nice online learner guide
Current ISO draft standard
CCAN -- new CPAN like open source library repository
3 (different) GNU debugger tutorials: #1 -- #2 -- #3
cpwiki -- our wiki on sourceforge
C programming resources:
GNU C Function and Macro Index -- glibc reference manual
The C Book -- nice online learner guide
Current ISO draft standard
CCAN -- new CPAN like open source library repository
3 (different) GNU debugger tutorials: #1 -- #2 -- #3
cpwiki -- our wiki on sourceforge
Sorry, I misread. The a.out file? It's still probably a location, but of course probably not a line number. Can you give more (as in any) context?
C programming resources:
GNU C Function and Macro Index -- glibc reference manual
The C Book -- nice online learner guide
Current ISO draft standard
CCAN -- new CPAN like open source library repository
3 (different) GNU debugger tutorials: #1 -- #2 -- #3
cpwiki -- our wiki on sourceforge
The only thing that I can think of is that is must have been a linker error/warning, i.e.
Otherwise, for a compiler error, you would have gotten a reference to a source file, not an object file. But even then the source file is mentioned, and the name of the output executable is not.Code:$ cat undef.c #include <stdio.h> void function(); int main() { function(); return 0; } $ gcc undef.c /tmp/ccea6Yiz.o: In function `main': undef.c:(.text+0xa): undefined reference to `function' collect2: ld returned 1 exit status $
Who knows.
dwk
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.