PDA

View Full Version : [SOLVED] standard library link error?



worksofcraft
November 19th, 2010, 11:45 PM
I really don't understand this :confused:
I add line of code that has nothing to do with any standard library functions and the function fopen isn't even called in the module where the line of code was added and I get this error message:



./a.out: relocation error: ./a.out: symbol fopen, version GLIBC_2.2.5 not defined in file libc.so.6 with link time reference


What on earth does it mean :confused:

worksofcraft
November 20th, 2010, 01:42 AM
That was a run time error on shared library use, so I put all the code in one big source file and then it compiled linked and worked just fine... so I split it all up again into separate modules and mysteriously it's still working :D

Arndt
November 20th, 2010, 01:53 PM
That was a run time error on shared library use, so I put all the code in one big source file and then it compiled linked and worked just fine... so I split it all up again into separate modules and mysteriously it's still working :D

I would probably have done "make clean" and "make".