[svlug] compiling c++ template with g++
steffle@wellsfargo.com
steffle at wellsfargo.com
Fri Sep 25 10:24:49 PDT 1998
> -----Original Message-----
> From: hkim [SMTP:hkim at locus.co.kr]
> what options should I use when I compile c++ files using template
> facility with g++.
> when I compile with no option, link-time error occurs.
>
I am not sure about g++ options but it looks like you have different kind
of problem:
there is general problem with templates, in some cases you have to
'instantiate' some of the template functions (or classes) because compiler
does not generate them automatically (does not know you going to need them)
and of course linker complains. feel free to ask me privately if this is not
enough, I don't want to post lengthy explanation to the list (since it looks
more like c++ discussion then linux related discussion).
erik
--
echo "unsubscribe svlug" | mail majordomo at svlug.org
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ to unsubscribe
More information about the svlug
mailing list