Linking Templates with instances=static

Did anybody try to use the CC instances=static flag?

When trying to link I get an error message:

CC -c -g -KPIC -mt -instances=static TemplateTest.cpp

CC -G -o libtmplt.so -L/opt/SUNWspro/SC5.0/lib -instances=static -L. -mt TemplateTest.o -lCstd

CC -c -g -KPIC -mt -instances=static main.cpp

CC -L/opt/SUNWspro/SC5.0/lib -instances=static -L. -mt -o TmplTst main.o -ltmplt -lCstd

Undefinedfirst referenced

symbolin file

void std::vector<int,std::allocator><int> >::__insert_aux(int*,const int&) ./libtmplt.so

ld: fatal: Symbol referencing errors. No output written to TmplTst

[663 byte] By [Sephi] at [2007-11-25 23:41:11]
# 1
I see the same problem with vector, and in addition to __insert_aux, also the operator= becomes undefined. Any suggestions?
Bragstad at 2007-7-5 18:48:52 > top of Java-index,Development Tools,Solaris and Linux Development Tools...