home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.g++.help
- Path: 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
-
-
- >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
-
-