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: "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 18:56:47 -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 menita dot singh at schwab dot com 2003-08-29 18:56 -------
OK, thanks. i m now compiling all sources & library code together to make an
executable. I use this :
g++ -g -frepo -c gmds.cpp
g++ -g -frepo -c sync.cpp
compilation is good for all my sources. Now i link :
g++ -g -frepo sync.o gmds.o -o qm
After this step, i get
collect: recompiling gmds.cpp ....
But then again, i get the errors ("undefined reference" - All errors are
related with templates.
So, do we need -frepo at link also, as above, or is there another otion to
use .rpo files ??