Date: Mon, 23 Apr 2007 04:04:59 +0400 From: "Andrew Pantyukhin" <infofarmer@FreeBSD.org> To: "Diomidis Spinellis" <dds@aueb.gr> Cc: hackers@freebsd.org Subject: Re: extern "C" and undefined reference Message-ID: <cb5206420704221704p7602bd64p36c3766dc221fc92@mail.gmail.com> In-Reply-To: <462BEC2B.5090508@aueb.gr> References: <cb5206420704221454v60a957b9qac74dc5f4f4b674a@mail.gmail.com> <462BEC2B.5090508@aueb.gr>
next in thread | previous in thread | raw e-mail | index | archive | help
On 4/23/07, Diomidis Spinellis <dds@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!
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?cb5206420704221704p7602bd64p36c3766dc221fc92>