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

Re: C++ compiling problem



On Thu, Aug 19, 1999 at 11:09:35AM -0600, Robert Kerr wrote:
> Okay, here's the situation.
> 
> I'm porting a large project to Linux.  Some of the libraries we have to
> use were compiled with an older version of egcs (I'm pretty sure it was
> 1.0.3). So, they expect the libraries (specifically libstdc++) that come
> with that version of egcs.  Okay, so I installed the older version of egcs
> from Debian 2.0.  I installed it by hand so it wouldn't overwrite my
> current version of everything.  I set different path names and all that.
> Anyway, part of our code, which egcs 1.1.1 handles perfectly, causes a
> compiler crash for 1.0.3.  Hmmmm.  So, here's what I propose to do:  I've
> downloaded a copy of libstdc++2.8.0.  I am planning on compiling it using
> the egcs 1.1.1 compiler.  Then I should have the new compiler with the old
> set of libraries.  
> 
> Does anyone see any major problems with this idea?

It seems a lot of trouble.  Why don't you just install libg++2.8.2-dev
2.91.60-5 (slink)?  This contains the parts of libstdc++ that were gnu
extensions and are dropped in favour of stl and friends in the newer
versions.  I think all you then need to do is after installation add a
-lg++ flag when linking.

It seems a good idea though to try to convert the code if you continue
using it in the future, since libg++ is no longer actively maintained.

HTH,
Eric

-- 
 E.L. Meijer (tgakem@chem.tue.nl)
 Eindhoven Univ. of Technology
 Lab. for Catalysis and Inorg. Chem. (SKA)


Reply to: