A
Avi Uziel
Hi All,
I have a linkage problem that I believe related to template instantiation.
My environment is Solaris 5.6, Compiler WorkShop 5.
I'm building a shared library which use templates. During a "good" linkage
(in other projects) the ld use the objects under the SunWS_cache which are
the template classes created by the compiler.
e.g. (two last lines)
/usr/ccs/bin/ld -dy -z defs -dy -G -L/p/sparcworks/SUNWspro/SC5.0/lib
-o <output dir>/libapi.so.1 /p/sparcworks/SUNWspro/SC5.0/lib/crti.o
<output dir>/SunWS_cache/CC_obj_U/UlUWxsTiEKbMlQ1CPUdS.o
<output dir>/SunWS_cache/CC_obj_5/5Obn06Np0jjwGIgxJPhq.o
....
In the link I'm running, I get an "Undefined Symbol" error about a template
object.
The link command don't use any objects under the template repository. I
would expect to see this objects in the link command!!!
Does any one have an idea?
Thanks,
Avi
I have a linkage problem that I believe related to template instantiation.
My environment is Solaris 5.6, Compiler WorkShop 5.
I'm building a shared library which use templates. During a "good" linkage
(in other projects) the ld use the objects under the SunWS_cache which are
the template classes created by the compiler.
e.g. (two last lines)
/usr/ccs/bin/ld -dy -z defs -dy -G -L/p/sparcworks/SUNWspro/SC5.0/lib
-o <output dir>/libapi.so.1 /p/sparcworks/SUNWspro/SC5.0/lib/crti.o
<output dir>/SunWS_cache/CC_obj_U/UlUWxsTiEKbMlQ1CPUdS.o
<output dir>/SunWS_cache/CC_obj_5/5Obn06Np0jjwGIgxJPhq.o
....
In the link I'm running, I get an "Undefined Symbol" error about a template
object.
The link command don't use any objects under the template repository. I
would expect to see this objects in the link command!!!
Does any one have an idea?
Thanks,
Avi