Article View: gnu.g++.help
Article #617Re: Linking g++ .o files with cc or gcc .a libraries
From: Larry Williamson
Date: Mon, 14 Dec 1992 19:57
Date: Mon, 14 Dec 1992 19:57
12 lines
897 bytes
897 bytes
>I seem unable to link g++ .o files with libraries created with gcc (or
>cc for that matter). Peculiar thing is that standard libraries (ie.
>libc) are no problem. Is this a well known error on my part?
Ahhh. Of course, we have to put extern "C" {} around our C prototypes
in the include files. How else will G++ be able to tell these are C
functions?!
Sorry for the noise on this list.
-Larry
Technical Details
Message-ID:
<LARRY.92Dec14145710@shark.mitra.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!uunet.ca!mitra!larryReferences:
<LARRY.92Dec14115005@shark.mitra.com>Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.help Path: arc1-ca.pugleaf.net!sparky!uunet!uunet.ca!mitra!larry From: larry@shark.mitra.com (Larry Williamson) Subject: Re: Linking g++ .o files with cc or gcc .a libraries In-Reply-To: larry@shark.mitra.com's message of Mon, 14 Dec 1992 16:50:05 GMT Message-ID: <LARRY.92Dec14145710@shark.mitra.com> Sender: larry@mitra.com (Larry Williamson) Organization: Mitra Imaging Inc. References: <LARRY.92Dec14115005@shark.mitra.com> Date: Mon, 14 Dec 1992 19:57:10 GMT Lines: 13