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

