[Bug c++/12104] Create an archive that uses templates

bangerth at dealii dot org gcc-bugzilla@gcc.gnu.org
Fri Aug 29 15:48:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12104



------- Additional Comments From bangerth at dealii dot org  2003-08-29 15:48 -------
You can't use -frepo for static libraries, only executables. gcc just doesn't support 
what you want. 
 
You should look into either 
a) having explicit instantiations of your templates, or 
b) putting templates into header files. 
These are really the only ways to do what you want, in absence of gcc implementing 
the export keyword. 
 
W.



More information about the Gcc-bugs mailing list