extern "C" and undefined reference

Andrew Pantyukhin infofarmer at FreeBSD.org
Mon Apr 23 00:06:36 UTC 2007


On 4/23/07, Diomidis Spinellis <dds at aueb.gr> wrote:
> You can use nm(1) on the .o files to see where the problem comes from.

Thanks! Using nm(1) I saw that the object file generated
from pure C code had its symbols mangled - only then did
I notice that it was being compiled with c++, not cc. A
simple sed trick fixed that in a jiffy. How blind could
I be...

Thanks!


More information about the freebsd-hackers mailing list