From: brucebailey3@my-deja.com
Subject: Best way to include template instantiations in common libraries?
Date: Wed, 24 Jan 2001 19:31:45 GMT [thread overview]
Message-ID: <94naj1$lid$1@nnrp1.deja.com> (raw)
Hi
I am trying to use c++ to create libraries with some common utilities.
BTW, I am using the stl. I run into a problem when trying to link the
libraries into the main program in that the symbols that reside in the
cxx_repository are not found by the linker.
Library directory makefile:
ar -cr libFunctions.a module1.o module2.o
Main program directory makefile:
cxx -o MainPgm MainPgm.o -L../libdir -lFunctions . . .
However, when I move the library project and the main project into the
same directory, everything links just fine.
What is the best way to create libraries that will link correctly?
Should I link the contents of cxx_repository into the archive lib? Are
shared object libraries better?
Thanks,
Bruce
Sent via Deja.com
http://www.deja.com/
reply other threads:[~2001-01-24 19:31 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