Re: [GD-Linux] ANSI/ISO C++
Brought to you by:
vexxed72
From: D. S. <st...@id...> - 2001-12-11 16:09:32
|
Matt Davies wrote: > > I would like to use the techniques used in Modern C++ Design and the Loki > library. This is however impossible as MSVC (my only current compiler) does > not support partial template specialisation or template template parameters > (when are they going to get their act together on this). > > I hoped that perhaps GCC (on Linux) would support templates properly and I > will try out version 3.0 - thanks. As for Windows I've tried out Borland > C++ 5.5 which handles them nicely except I cannot use its debugger with any > executable that I create. Could someone let me known how this is done. g++ 2.96 of redhat supports partial specialization. The 3.x series does. I don't know if the older 2.91.x supports it or not. Even if older ones support partial specialization, I'd recommend going newer g++ due to much better STL support (this is probably due more to packaging than to the compiler itself, but I'm not sure). IMHO, the template support on 2.96+ is really nice for g++, the only real complaint I know of there is that lots of templates results in long compile times. I don't know what LOKI uses, I suggest you just give it a try. As someone else mentioned, there is no such thing as a fully ANSI/ISO C++ compiler. If you are going to distribute source code, you probably want what you expect the end user to compile on; if sending binary code, probably whatever gives you the best code and most coding quality. D. Stimits, st...@id... > > I plan to implement my code on Linux when I install it. I do have the Code > Fusion compiler which I bought 2 years ago which is GCC with help from > Intel. I am hoping that it has decent template support. But I doubt it. > Is the free GCC not that efficient at optimising then? > > I would like to take this conversation to SWENG but it seems to be down and > I haven't heard a peep from it for a few days now. I am hoping that a few > on this list subscribe to SWENG so please forgive me when I ask this > question: > > Has anyone converted the LOKI library to not use partial template > specialisation so that I can compile it under MSVC? > > Cheers, > > Matt Davies > Programmer, Confounding Factor > ma...@co... > www.confounding-factor.com > > -----Original Message----- > From: Daniel Vogel [mailto:vo...@ep...] > Sent: 11 December 2001 10:03 > To: Matt Davies; gam...@li... > Subject: RE: [GD-Linux] ANSI/ISO C++ > > None of the commercial compilers out there supports the full range of the > ISO C++ Standard though on either the sweng or algorithm list someone posted > a list of "research" compilers that claim to be fully compliant. > > gcc 3.0 seems to have okay template support though I can't really tell as we > hit a regression with gcc >= 2.96. You might try Intel's C++ compiler - it's > not free for commercial use but I think you can use it for free if you are > student or something like that. For a personal project it might be worth > looking up the details as the compiler is $400 otherwise IIRC. If it's for > real (time==money) use it's worth every penny as it compiles code roughly > three times faster than gcc :) > > On Windows MSVC is free IIRC as long as you are a student or for non > commercial use (as above I only vaguely remember the terms) though they only > provide you with access to a non optimizing version of the compiler. MSVC > has a nice IDE and debugger so you might want to give that a try. > > BTW, cross platformness and nifty template tricks are usually mutually > exclusive - at least in my experience. Michael Vance @ TreyArch should be > able to tell a lot of horror stories ;) > > -- Daniel, Epic Games Inc. > > -----Original Message----- > From: gam...@li... > [mailto:gam...@li...]On Behalf Of Matt > Davies > Sent: Tuesday, December 11, 2001 4:36 AM > To: gam...@li... > Subject: [GD-Linux] ANSI/ISO C++ > > Hi, > > Is there any free compilers for Linux that supports the full ANSI/ISO C++ > language - which includes template template parameters and partial template > specialisation. Does GCC support them yet? I need a compiler for Windows > as well. Borland C++ 5.5 seems to do the job but I've had no luck making it > work with the Turbo Debugger. Perhaps someone can provide me with help > there? > > BTW, does anyone know whats happened to the SWENG mailing list. I've sent > some messages out but I haven't received any. Is it down? > > Best regards, > > Matt Davies > Programmer, Confounding Factor > ma...@co... > www.confounding-factor.com > > _______________________________________________ > Gamedevlists-linux mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gamedevlists-linux |