tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Noboom2 () aol ! com
To: tru64-unix-managers
Subject: Summary:  cxx compiler error
Date: Fri, 08 Jun 2001 22:30:04 +0000	[thread overview]
Message-ID: <102653649621743.tru64-unix-managers.marc@archive.invalid> (raw)

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@cmis.CSIRO.AU
        lola@gene.COM
        tom@radar.tu-graz.ac.at

                 reply	other threads:[~2001-06-08 22:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox