Subject: Re: Unwind
To: matthew green <mrg@eterna.com.au>
From: James Chacon <jmc@NetBSD.org>
List: tech-pkg
Date: 01/22/2004 16:08:59
On Thu, Jan 22, 2004 at 06:12:38PM +0100, Thomas Klausner wrote:
> On Thu, Jan 22, 2004 at 12:17:33PM +1100, matthew green wrote:
> >
> > for linking doesn't really seem to apply here -- or should g++ have
> > been used when creating libsmpeg?
> >
> >
> > "g++" (or c++ frontend) should always be used when linking C++ code,
> > whether into a library or an executable.
>
> Just to make sure:
> When linking a library that was written in C++ against a program
> that was written in C, is gcc/ld enough or should g++ be used too?
If you compiled source with g++, link with g++. Compile is applicable for
"any objects you're linking with" as well.
James