This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12104] New: Create an archive that uses templates
- From: "menita dot singh at schwab dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Aug 2003 14:49:31 -0000
- Subject: [Bug c++/12104] New: Create an archive that uses templates
- 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
Summary: Create an archive that uses templates
Product: gcc
Version: 2.96 (redhat)
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: menita dot singh at schwab dot com
CC: gcc-bugs at gcc dot gnu dot org
IN CC, there is an option CC -xar, which creates an archive if, my code uses
templates. Using this option, automatically adds the templates to archive as
needed.
I need the equivalent option in g++. Or is there an alternate method to create
the archive ? If i use ar command, the archive gets created, but i get link
errors, where i use the library.