* Best way to include template instantiations in common libraries?
@ 2001-01-24 19:31 brucebailey3
0 siblings, 0 replies; only message in thread
From: brucebailey3 @ 2001-01-24 19:31 UTC (permalink / 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/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-01-24 19:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-24 19:31 Best way to include template instantiations in common libraries? brucebailey3
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox