Thread View: gnu.g++.help
2 messages
2 total messages
Started by Larry Williamson
Mon, 14 Dec 1992 16:50
Linking g++ .o files with cc or gcc .a libraries
Author: Larry Williamson
Date: Mon, 14 Dec 1992 16:50
Date: Mon, 14 Dec 1992 16:50
12 lines
652 bytes
652 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? g++ and gcc version 2.3.2 libg++ version 2.2 SunOS version 4.1.2 and 4.1.3 -larry
Re: Linking g++ .o files with cc or gcc .a libraries
Author: 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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads