This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12104] Create an archive that uses templates
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Aug 2003 15:48:28 -0000
- Subject: [Bug c++/12104] Create an archive that uses templates
- References: <20030829144929.12104.menita.singh@schwab.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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.