This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: C++ program with C shared object?
- From: bjorn rohde jensen <shamus at tdcadsl dot dk>
- To: Joshua Pollak <joshp at cra dot com>, gcc-help at gcc dot gnu dot org
- Date: Fri, 28 Dec 2001 21:10:53 +0100
- Subject: Re: C++ program with C shared object?
- References: <5.1.0.14.0.20011228141000.00a9ece8@mail.cra.com>
- Reply-to: shamus at tdcadsl dot dk
Hi,
If you want to use the linker directly to link object files, you do
have
to tell it, where to find quite a few libraries, including the standard
libraries provided by a C++ compiler. I would suggest using the compiler
to drive the linker, that way it will handle this sort of thing for you,
and have it pass your special linker options to the linker.
Yours sincerely,
Bjorn