This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Linking using egcs (-frepo question)



All:

I have a program which uses template libraries.  The problem is that I get
undefined refrences because the ar utility doesn't instantiate the required
template code.  Gcc runs the collect2 program to instantiate the template code,
but then complains about main(), which led me to believe that it can't generate
static libraries.  ar doesn't run collect2, which causes no end of undefined
symbol messages.

	Is there an option I'm missing, or do I have to pull some magic for
this to work right.

Thanks for any help!

--
Mark Schaefer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]