Summary: cxx compiler error

From: <Noboom2_at_aol.com>
Date: Fri, 08 Jun 2001 18:30:04 -0400 (EDT)

Greetings all-

I'm happy to summarize that the problem was a foolish mistake on my part, and
that my cxx code is now working to specification. My question concerned a
lot of linker errors I was receiving when trying to link functions from
several libraries, some of which were C and some were C++.

It turns out that when creating a library in c++ it is important to include
the object files the compiler puts into the cxx_repository, which are the
instantiated templates of objects in the standard library, among other
things. By adding the following to the 'ar' command when creating the
library

        cxx_repository/*.o

ar included the instantiations and I was able to correct the linker problems
when trying to create programs.

Thanks to several people who replied (some of whom I may have lost the email
address for -- sorry),
who included:

        Hugues.Talbot_at_cmis.CSIRO.AU
        lola_at_gene.COM
        tom_at_radar.tu-graz.ac.at
Received on Fri Jun 08 2001 - 22:31:39 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:42 NZDT