By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,562 Members | 1,298 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,562 IT Pros & Developers. It's quick & easy.

C++ Standard Conforming Compiler

P: n/a
ik
Hello All,
Can somebody tell, which compiler conforms C++ Standard, regarding
templates better on Win32 Platform ? I was finding problems with
VC++6.0 with some template code, but the same works fine with Digital
Mars and Gcc. Is there any comparison available regarding templates for
these compilers ?
Any help will be appreciated.
Thanks
IK

Jul 22 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
"ik" <ik****@gmail.com> wrote in message
news:ch********@odbk17.prod.google.com...
Hello All,
Can somebody tell, which compiler conforms C++ Standard, regarding
templates better on Win32 Platform ? I was finding problems with
VC++6.0 with some template code, but the same works fine with Digital
Mars and Gcc. Is there any comparison available regarding templates for
these compilers ?


Don't use VC6, it's standards compliance is pretty bad, and templates are no
exception. I don't know about Digital Mars, but GCC is pretty good afaik.

If you want to stick with the VC compiler you have two free options:
1. Download the Visual C++ Toolkit 2003. This is the full optimising
compiler and linker from Visual Studio .Net 2003 (VC7.1), which is one of
the most complete compilers as far as standards support goes (partial
template specialisation, yay! ^_^). You don't get the development
environment though, and you cannot use the VC6 environment to use this
compiler, so you'd better enjoy command-line compilation.
http://msdn.microsoft.com/visualc/vctoolkit2003/
2. Download the Visual C++ 2005 Express Beta. A "light" version of Visual
C++ 2005 (formerly known as codename "Whidbey") that gives you a powerful
development environment, and a compiler even better than VC2003. It's still
in beta, so don't use it for production code.
http://lab.msdn.microsoft.com/expres...c/default.aspx

Both are free downloads.

--
Unforgiven
Jul 22 '05 #2

P: n/a
> http://lab.msdn.microsoft.com/expres...c/default.aspx

Yikes! Is that what MS think a typical C++ programmer looks like?

john
Jul 22 '05 #3

P: n/a
"John Harrison" <jo*************@hotmail.com> wrote in message
news:2q************@uni-berlin.de...
http://lab.msdn.microsoft.com/expres...c/default.aspx


Yikes! Is that what MS think a typical C++ programmer looks like?


I don't think so, at least not based on what the typical MS employee looks
like (see http://channel9.msdn.com) ^_^

It's prolly because of the target audience for the Express editions, which
is starting developers such as students. Which doesn't mean it's not suited
to "real" development, just that you might miss some professional features
such as cross-language debugging, source control, stuff like that.

And in my case, they got the hair length and the beard almost right...

--
Unforgiven
Jul 22 '05 #4

P: n/a
On 5 Sep 2004 04:49:42 -0700, "ik" <ik****@gmail.com> wrote:
Can somebody tell, which compiler conforms C++ Standard, regarding
templates better on Win32 Platform ? I was finding problems with
VC++6.0 with some template code, but the same works fine with Digital
Mars and Gcc. Is there any comparison available regarding templates for
these compilers ?
Any help will be appreciated.


You can download for free the current release of Visual C++ (7.1 == 2003)
compiler at: http://www.msdn.microsoft.com/visualc/vctoolkit2003. It
includes the C++ language and standard library and all command-line tools
(incl. the full optimizer). It does not include other libraries like
MFC/ATL, and not the GUI tools. Note this is (finally) one of the most
conforming C++ compilers, including template support (e.g., partial
specialization of templates was not available in VC++ before this
version).

You can also download for free the Visual C++ 2005 beta compiler at
http://lab.msdn.microsoft.com/expres...c/default.aspx (and also get
the refresh at
http://www.microsoft.com/downloads/d...displaylang=en
). This version includes also C++/CLI, the draft standard extensions for
..NET programming (replacing the Managed Extensions for C++), in case
you're interested in .NET stuff.

Herb

---
Herb Sutter (www.gotw.ca)

Convener, ISO WG21 (C++ standards committee) (www.gotw.ca/iso)
Contributing editor, C/C++ Users Journal (www.gotw.ca/cuj)
Architect, Developer Division, Microsoft (www.gotw.ca/microsoft)
Jul 22 '05 #5

P: n/a
ik wrote:
Hello All,
Can somebody tell, which compiler conforms C++ Standard, regarding
templates better on Win32 Platform ? I was finding problems with
VC++6.0 with some template code, but the same works fine with Digital
Mars and Gcc. Is there any comparison available regarding templates for
these compilers ?
Any help will be appreciated.

VC++ 6 is very old. Try VC++ 2003 instead. Or better, wait VC++ 2005
which will be great.
In the meantime you may use Dev-C++which is free and uses MINGW a GCC
port for Windows.

http://www.bloodshed.net
(I recommend the latest Beta).


Regards,

Ioannis Vranos

http://www23.brinkster.com/noicys
Jul 22 '05 #6

P: n/a
On Sunday 05 September 2004 06:55 am, John Harrison did deign to grace us
with the following:
http://lab.msdn.microsoft.com/expres...c/default.aspx


Yikes! Is that what MS think a typical C++ programmer looks like?

Probably affirmative action. He's their token not-quite-any-race-in-
particular guy. ;-)

Jul 22 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.