<!-- MHonArc v2.4.4 --> <!--X-Subject: Re: [MUD-Dev] [TECHNICAL] [SOLVED] (template problem). --> <!--X-From-R13: Pra Uerrne <terrneNploreuvtujnl.arg> --> <!--X-Date: Mon, 31 May 1999 17:05:54 -0700 --> <!--X-Message-Id: 37531B3F.F38A4FE3#cyberhighway,net --> <!--X-Content-Type: text/plain --> <!--X-Reference: 199905280455.VAA23194#portland,puremagic.com --> <!--X-Head-End--> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <html> <head> <title>MUD-Dev message, Re: [MUD-Dev] [TECHNICAL] [SOLVED] (template problem).</title> <!-- meta name="robots" content="noindex,nofollow" --> <link rev="made" href="mailto:greear#cyberhighway,net"> </head> <body background="/backgrounds/paperback.gif" bgcolor="#ffffff" text="#000000" link="#0000FF" alink="#FF0000" vlink="#006000"> <font size="+4" color="#804040"> <strong><em>MUD-Dev<br>mailing list archive</em></strong> </font> <br> [ <a href="../">Other Periods</a> | <a href="../../">Other mailing lists</a> | <a href="/search.php3">Search</a> ] <br clear=all><hr> <!--X-Body-Begin--> <!--X-User-Header--> <!--X-User-Header-End--> <!--X-TopPNI--> Date: [ <a href="msg00361.html">Previous</a> | <a href="msg00363.html">Next</a> ] Thread: [ <a href="msg00332.html">Previous</a> | <a href="msg00341.html">Next</a> ] Index: [ <A HREF="author.html#00362">Author</A> | <A HREF="#00362">Date</A> | <A HREF="thread.html#00362">Thread</A> ] <!--X-TopPNI-End--> <!--X-MsgBody--> <!--X-Subject-Header-Begin--> <H1>Re: [MUD-Dev] [TECHNICAL] [SOLVED] (template problem).</H1> <HR> <!--X-Subject-Header-End--> <!--X-Head-of-Message--> <UL> <LI><em>To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI> <LI><em>Subject</em>: Re: [MUD-Dev] [TECHNICAL] [SOLVED] (template problem).</LI> <LI><em>From</em>: Ben Greear <<A HREF="mailto:greear#cyberhighway,net">greear#cyberhighway,net</A>></LI> <LI><em>Date</em>: Mon, 31 May 1999 16:29:03 -0700</LI> <LI><em>Reply-To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI> <LI><em>Sender</em>: <A HREF="mailto:greear#burrito,cyberhighway.net">greear#burrito,cyberhighway.net</A></LI> <LI><em>Sender</em>: <A HREF="mailto:mud-dev-admin#kanga,nu">mud-dev-admin#kanga,nu</A></LI> </UL> <!--X-Head-of-Message-End--> <!--X-Head-Body-Sep-Begin--> <HR> <!--X-Head-Body-Sep-End--> <!--X-Body-of-Message--> <PRE> bruce#puremagic,com wrote: > Templates with g++ 2.7.2 are so much fun. > > > So the question is, anyone know how to get the compiler to spit out the > > pre-processed code so I can take a look at what line it's complaining about? > > gcc -E will send the preprocessed output to stdout and not try to compile > it. That worked, but produced nothing that I knew how to make use of, however... > > For the mangled symbol, check out the program c++filt .. it is really > useful. That provided the clue I needed!! (It was the: ObjArray<int>& operator=(const ObjArray<int> blah); method. The problem was something like this: #include "MyTemplate.h" class foo { ObjArray<int> array; foo(const foo& src) { *this = src; } ... // The important part is that no operator=(const foo& src) is defined }; It looks like when g++ 2.7.2 was creating the default operator= method, it did not count that as a reason to instantiate/create/whatever the ObjArray<T> operator= method. (Which was defined and implemented.) After I put the operator= in class foo (which just did a this->blah = src.blah for all members blah), it compiled and linked fine (and is now running :)) Thanks for all the help folks! Ben -- Ben Greear (greear#cyberhighway,net) <A HREF="http://www.primenet.com/~greear">http://www.primenet.com/~greear</A> Author of ScryMUD: mud.primenet.com 4444 (Released under GPL) <A HREF="http://www.primenet.com/~greear/ScryMUD/scry.html">http://www.primenet.com/~greear/ScryMUD/scry.html</A> _______________________________________________ MUD-Dev maillist - MUD-Dev#kanga,nu <A HREF="http://www.kanga.nu/lists/listinfo/mud-dev">http://www.kanga.nu/lists/listinfo/mud-dev</A> </PRE> <!--X-Body-of-Message-End--> <!--X-MsgBody-End--> <!--X-Follow-Ups--> <HR> <!--X-Follow-Ups-End--> <!--X-References--> <UL><LI><STRONG>References</STRONG>: <UL> <LI><STRONG><A NAME="00332" HREF="msg00332.html">Re: [MUD-Dev] [TECHNICAL] How to generate pre-processor output (template problem).</A></STRONG> <UL><LI><EM>From:</EM> bruce#puremagic,com</LI></UL></LI> </UL></LI></UL> <!--X-References-End--> <!--X-BotPNI--> <UL> <LI>Prev by Date: <STRONG><A HREF="msg00361.html">Re: [MUD-Dev] Text Parsing</A></STRONG> </LI> <LI>Next by Date: <STRONG><A HREF="msg00363.html">Re: [MUD-Dev] Text Parsing</A></STRONG> </LI> <LI>Prev by thread: <STRONG><A HREF="msg00332.html">Re: [MUD-Dev] [TECHNICAL] How to generate pre-processor output (template problem).</A></STRONG> </LI> <LI>Next by thread: <STRONG><A HREF="msg00341.html">Re: [MUD-Dev] [TECHNICAL] How to generate pre-processor output (template problem).</A></STRONG> </LI> <LI>Index(es): <UL> <LI><A HREF="index.html#00362"><STRONG>Date</STRONG></A></LI> <LI><A HREF="thread.html#00362"><STRONG>Thread</STRONG></A></LI> </UL> </LI> </UL> <!--X-BotPNI-End--> <!--X-User-Footer--> <!--X-User-Footer-End--> <ul><li>Thread context: <BLOCKQUOTE><UL> <LI><STRONG>RE: [MUD-Dev] Text Parsing</STRONG>, <EM>(continued)</EM> <ul compact> <LI><strong><A NAME="00693" HREF="msg00693.html">RE: [MUD-Dev] Text Parsing</A></strong>, Koster, Raph <a href="mailto:rkoster#origin,ea.com">rkoster#origin,ea.com</a>, Thu 10 Jun 1999, 14:53 GMT </LI> </ul> </LI> <LI><strong><A NAME="00335" HREF="msg00335.html">[MUD-Dev] Searching the archives</A></strong>, claw <a href="mailto:claw#kanga,nu">claw#kanga,nu</a>, Fri 28 May 1999, 06:10 GMT <LI><strong><A NAME="00331" HREF="msg00331.html">[MUD-Dev] [TECHNICAL] How to generate pre-processor output (template problem).</A></strong>, Ben Greear <a href="mailto:greear#cyberhighway,net">greear#cyberhighway,net</a>, Fri 28 May 1999, 04:45 GMT <UL> <LI><strong><A NAME="00332" HREF="msg00332.html">Re: [MUD-Dev] [TECHNICAL] How to generate pre-processor output (template problem).</A></strong>, bruce <a href="mailto:bruce#puremagic,com">bruce#puremagic,com</a>, Fri 28 May 1999, 04:55 GMT <UL> <LI><strong><A NAME="00362" HREF="msg00362.html">Re: [MUD-Dev] [TECHNICAL] [SOLVED] (template problem).</A></strong>, Ben Greear <a href="mailto:greear#cyberhighway,net">greear#cyberhighway,net</a>, Tue 01 Jun 1999, 00:05 GMT </LI> </UL> </LI> <LI><strong><A NAME="00341" HREF="msg00341.html">Re: [MUD-Dev] [TECHNICAL] How to generate pre-processor output (template problem).</A></strong>, Greg Miller <a href="mailto:gmiller#classic-games,com">gmiller#classic-games,com</a>, Sat 29 May 1999, 00:50 GMT <UL> <LI><strong><A NAME="00345" HREF="msg00345.html">Re: [MUD-Dev] [TECHNICAL] How to generate pre-processor output (template problem).</A></strong>, Ben Greear <a href="mailto:greear#cyberhighway,net">greear#cyberhighway,net</a>, Sat 29 May 1999, 01:47 GMT <UL> <LI><strong><A NAME="00347" HREF="msg00347.html">Re: [MUD-Dev] [TECHNICAL] How to generate pre-processor output (template problem).</A></strong>, Greg Miller <a href="mailto:gmiller#classic-games,com">gmiller#classic-games,com</a>, Sat 29 May 1999, 03:42 GMT </LI> </UL> </LI> </UL> </LI> <LI><strong><A NAME="00346" HREF="msg00346.html">Re: [MUD-Dev] [TECHNICAL] How to generate pre-processor output (template problem).</A></strong>, Oliver Jowett <a href="mailto:icecube#ihug,co.nz">icecube#ihug,co.nz</a>, Sat 29 May 1999, 02:40 GMT </LI> </UL> </LI> </UL></BLOCKQUOTE> </ul> <hr> <center> [ <a href="../">Other Periods</a> | <a href="../../">Other mailing lists</a> | <a href="/search.php3">Search</a> ] </center> <hr> </body> </html>