Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
c++ - template libraries
// file 1 template<class T> struct A { void f(); }; template<class T> void A<T>::f() { } template class A<bool>; compile and create a static library: dmc -c file1.cpp lib -c mylib.lib file1.cpp // file 1 template<class T> struct A { void f(); }; int main() { A<bool> a; a.f(); return 0; } trying to link with mylib1.lib: Warning 140: Library probably needs FIXLIB Error 42: Symbol Undefined ?f ?$A _N QAEXXZ Looks familiar, but this time I would consider it a bug. And STLport expects that it can use template instantiations from a library. bye, Christof -- http://cmeerw.org JID: cmeerw jabber.at mailto cmeerw at web.de ...and what have you contributed to the Net? Jan 04 2003
|