[MUD-Dev] OT: Linux g++

Ben Greear greear at cyberhighway.net
Thu Feb 12 17:29:37 CET 1998


Ben Greear (greear at cyberhighway.net)  http://www.primenet.com/~greear 
Author of ScryMUD:  mud.primenet.com 4444
http://www.primenet.com/~greear/ScryMUD/scry.html

On Thu, 12 Feb 1998, Greg Munt wrote:

> On Wed, 11 Feb 1998 s001gmu at nova.wright.edu wrote:
> 
> > what's wrong with linux g++, as far as templates go, btw?
> > haven't had a need for a template class yet, but then I'm not very far
> > into things.  :)
> 
> Linux g++ fails miserably at implementing:
> 
>   templates
>   namespaces
>   exceptions
> 
> You can (sometimes) get away with basic uses of these features, but, 
> since we are all writing non-basic programs, that doesn't help too much. 
> I know that the exception handling is so poor that it has to be turned on 
> with a flag.

Don't know about the others, but you can get templates working.  The trick
is to include the .C file in the .h file (with #ifdef's of course).  Then
include the .h file in your program.  It's a hack granted, but it does
work...  Besides it's free and ubiquitous!

Ben
> --
> Greg Munt, greg at uni-corn.demon.co.uk   "I'm not bitter - just twisted."
> http://www.uni-corn.demon.co.uk/ubiquity/
> 
> 
> 
> 




More information about the mud-dev-archive mailing list