home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / gnu / g / help / 1584 < prev    next >
Encoding:
Text File  |  1992-12-14  |  874 b   |  26 lines

  1. Newsgroups: gnu.g++.help
  2. Path: sparky!uunet!uunet.ca!mitra!larry
  3. From: larry@shark.mitra.com (Larry Williamson)
  4. Subject: Re: Linking g++ .o files with cc or gcc .a libraries
  5. In-Reply-To: larry@shark.mitra.com's message of Mon, 14 Dec 1992 16:50:05 GMT
  6. Message-ID: <LARRY.92Dec14145710@shark.mitra.com>
  7. Sender: larry@mitra.com (Larry Williamson)
  8. Organization: Mitra Imaging Inc.
  9. References: <LARRY.92Dec14115005@shark.mitra.com>
  10. Date: Mon, 14 Dec 1992 19:57:10 GMT
  11. Lines: 13
  12.  
  13.  
  14. >I seem unable to link g++ .o files with libraries created with gcc (or
  15. >cc for that matter). Peculiar thing is that standard libraries (ie.
  16. >libc) are no problem. Is this a well known error on my part?
  17.  
  18. Ahhh. Of course, we have to put extern "C" {} around our C prototypes
  19. in the include files. How else will G++ be able to tell these are C
  20. functions?!
  21.  
  22. Sorry for the noise on this list.
  23.  
  24. -Larry
  25.  
  26.