[MUD-Dev] [TECHNICAL] How to generate pre-processor output (template problem).

bruce at puremagic.com bruce at puremagic.com
Thu May 27 21:54:59 CEST 1999


> I added a cute little templated array class, and everything works like a charm
> on my egcs RH 6.0 Linux box.  However, my primary mud server is BSD, and it's
> compiler is g++ 2.7.2.  It gets all the way to the end and then complains about
> a missing symbol (*puke*).  To add to the fun, its mangled so badly I haven't a
> real clue what it really is supposed to be.  Also, I have neither root nor the
> permission to install a new compiler or any other useful software
> on the BSD box.

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.

For the mangled symbol, check out the program c++filt .. it is really
useful.

 - Bruce


_______________________________________________
MUD-Dev maillist  -  MUD-Dev at kanga.nu
http://www.kanga.nu/lists/listinfo/mud-dev




More information about the mud-dev-archive mailing list