[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: gcc-3.x and C programs with some C++ objects linked in



Daniel Jacobowitz <dan@debian.org> writes:

> On Thu, Sep 12, 2002 at 06:26:56PM +0200, Mario Lang wrote:
>> Hey.
>> 
>> I'm having a bit of a problem here.  brltty is a C program,
>> but some of it's code is written in C++.  Until gcc-2.95 it
>> was perfectly possible to compile the .cc files with g++ into .o files,
>> and link the whole program with gcc into a binary which did not
>> dynamicly link against libstdc++.
>> 
>> In gcc-3.x, this appears to no longer work.  I tried compiling

[...]

> Try adding '-lsupc++' to your link command and linking with GCC again?

Thanks!  This appears to work.

-- 
CYa,
  Mario



Reply to: