473,466 Members | 1,369 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

VC++ vs C++

Where can I find a document outlining the main differences between
Microsoft's Visual C++ and ANSI C++?
Thanks,

Marco
Jul 22 '05 #1
11 2327
Marco wrote:
Where can I find a document outlining the main differences between
Microsoft's Visual C++ and ANSI C++?


You should probably ask in microsoft.public.vc.language. They know
all the specifics on what makes current VC++ compiler still not
perfectly compliant with the Standard.

AFAIK, it's very close, though. Something like 98%. I've read it
somewhere.

Victor
Jul 22 '05 #2
What does it say about the 1997 ISO C++ standard that in 2004,
arguably the dominant C++ compiler, Microsoft Visual C++ does not
fully implement the language? Is this primarily due to the complexity
of the standard or Microsoft's placing a lower priority on standards
compliance? I have read that g++ is getting slower as ISO C++ features
are being added.

Victor Bazarov <v.********@comAcast.net> wrote in message news:<hk****************@dfw-read.news.verio.net>...
Marco wrote:
Where can I find a document outlining the main differences between
Microsoft's Visual C++ and ANSI C++?


You should probably ask in microsoft.public.vc.language. They know
all the specifics on what makes current VC++ compiler still not
perfectly compliant with the Standard.

AFAIK, it's very close, though. Something like 98%. I've read it
somewhere.

Victor

Jul 22 '05 #3
be*******@aol.com wrote:
What does it say about the 1997 ISO C++ standard that in 2004,
arguably the dominant C++ compiler, Microsoft Visual C++ does not
fully implement the language? Is this primarily due to the complexity
of the standard or Microsoft's placing a lower priority on standards
compliance? I have read that g++ is getting slower as ISO C++ features
are being added.
Please don't top-post. If you don't think the conversation up to
the point when you're replying to it, is relevant, don't quote it.
If you think the quote is needed, put your text _after_ the quote.
Thank you.

Now, regarding the Standard-compliance, Microsoft has a few areas
that they are still non-compliant, and those are listed in

http://msdn.microsoft.com/library/en...sInVisualC.asp

Please read and decide to yourself whether it's because Microsoft
implementors are lazy or too busy to implement everything.

As for G++, it's now a second-grade compiler, as far as I'm concerned.
It used to be good, but not any more. The main reason is motivation
(or rather lack thereof) of the participating developers.

V

Victor Bazarov <v.********@comAcast.net> wrote in message news:<hk****************@dfw-read.news.verio.net>...
Marco wrote:
Where can I find a document outlining the main differences between
Microsoft's Visual C++ and ANSI C++?


You should probably ask in microsoft.public.vc.language. They know
all the specifics on what makes current VC++ compiler still not
perfectly compliant with the Standard.

AFAIK, it's very close, though. Something like 98%. I've read it
somewhere.

Victor

Jul 22 '05 #4
In article <zX****************@dfw-read.news.verio.net>,
Victor Bazarov <v.********@comAcast.net> wrote:
Now, regarding the Standard-compliance, Microsoft has a few areas
that they are still non-compliant, and those are listed in

http://msdn.microsoft.com/library/en...ComplianceIssu
esInVisualC.asp
This is incomplete. e.g. VC++ does not support nested templates.
As for G++, it's now a second-grade compiler, as far as I'm concerned.
It used to be good, but not any more. The main reason is motivation
(or rather lack thereof) of the participating developers.


Which one(s) do you consider good ?
Jul 22 '05 #5
Mats Weber wrote in news:ma*************************@sicinfo.epfl.ch in
comp.lang.c++:
In article <zX****************@dfw-read.news.verio.net>,
Victor Bazarov <v.********@comAcast.net> wrote:
Now, regarding the Standard-compliance, Microsoft has a few areas
that they are still non-compliant, and those are listed in

http://msdn.microsoft.com/library/en...StandardCompli
anceIssu esInVisualC.asp
This is incomplete. e.g. VC++ does not support nested templates.


Do you mean like this:

#include <iostream>
#include <ostream>

template < typename U >
struct X
{
template < typename T > void f();
template < typename V > struct Y;
};
template < typename U >
template < typename T >
void X< U >::f()
{
std::cout << "T\n";
}
template < typename U >
template < typename V >
struct X< U >::Y
{
V get() { return V(); }
};
int main()
{
using namespace std;

X< int > x;
x.f< double >();
X< double >::Y< int > xy;
cout << xy.get() << '\n';
}
That I just compiled with VC++ 7.1.
As for G++, it's now a second-grade compiler, as far as I'm concerned.
It used to be good, but not any more. The main reason is motivation
(or rather lack thereof) of the participating developers.


Which one(s) do you consider good ?


I have to disagree with Victor, so far (*) I think gcc (g++) 3.4
is better (read more conformant to out beloved standard) than VC 7.1.

YMMV.

*) 3.4 was only releasd reciently and the windows version I'm
currently using is a prerelese.

I got it from:

http://www.thisiscool.com/gcc_mingw.htm#gcj34

However www.mingw.org have a more uptodate release candidate:

http://www.mingw.org/download.shtml

For other platforms:

http://gcc.gnu.org/releases.html

Rob.
--
http://www.victim-prime.dsl.pipex.com/
Jul 22 '05 #6
Victor Bazarov wrote:
...

As for G++, it's now a second-grade compiler, as far as I'm concerned.
It used to be good, but not any more. The main reason is motivation
(or rather lack thereof) of the participating developers.


Why do you say this ?

Every time I have posted a g++ bug, it seems like the developers are
motivated.
Jul 22 '05 #7
> What does it say about the 1997 ISO C++ standard that in 2004,
arguably the dominant C++ compiler, Microsoft Visual C++ does not
fully implement the language? Is this primarily due to the complexity
of the standard or Microsoft's placing a lower priority on standards
compliance? I have read that g++ is getting slower as ISO C++ features
are being added.


If some C++ compiler doesn't implement standard features, it's the
compiler's fault. It doesn't say anything about the standard, but it
certainly says something about the compiler.

Why would MS want programmers to write perfectly standard-compliant
and thus portable code? They would want everyone to use only their
proprietary products.

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
To iterate is human, to recurse divine.
-L. Peter Deutsch
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Jul 22 '05 #8
Prateek R Karandikar wrote:
What does it say about the 1997 ISO C++ standard that in 2004,
arguably the dominant C++ compiler, Microsoft Visual C++ does not
fully implement the language? Is this primarily due to the complexity
of the standard or Microsoft's placing a lower priority on standards
compliance? I have read that g++ is getting slower as ISO C++ features
are being added.

This was in my inbox from the gcc developer mailing list this morning:
"Today the automatic POOMA tramp3d-v3 tester caught a 10% compile time
decrease (congrats!) for the leafified version on ia64-linux!"
If some C++ compiler doesn't implement standard features, it's the
compiler's fault. It doesn't say anything about the standard, but it
certainly says something about the compiler.
I can't fully agree with that. There are features in gcc-3.4.0 that bring
it into better conformity with ISO/IEC 14882:1997. I believe the C++
standard has been difficult to implement. That may in part be due to the
fact that it reads, in some parts, like a leagal contract drawn up by
lawyers, not a technical document written by engineers.
Why would MS want programmers to write perfectly standard-compliant
and thus portable code? They would want everyone to use only their
proprietary products.

--
STH
Hatton's Law: "There is only One inviolable Law"
KDevelop: http://www.kdevelop.org SuSE: http://www.suse.com
Mozilla: http://www.mozilla.org
Jul 22 '05 #9
In article <Xn**********************************@130.133.1.4> ,
Rob Williscroft <rt*@freenet.co.uk> wrote:
Mats Weber wrote in news:ma*************************@sicinfo.epfl.ch in
comp.lang.c++:

This is incomplete. e.g. VC++ does not support nested templates.

[...]
That I just compiled with VC++ 7.1.


You are right. Version 7.1 compiles nested templates. My last try was
version 6.x.
Jul 22 '05 #10
Mats Weber <ma***@bluewin.ch> wrote in message news:<ma*************************@sicinfo.epfl.ch> ...
In article <Xn**********************************@130.133.1.4> ,
Rob Williscroft <rt*@freenet.co.uk> wrote:
Mats Weber wrote in news:ma*************************@sicinfo.epfl.ch in
comp.lang.c++:

This is incomplete. e.g. VC++ does not support nested templates.

[...]
That I just compiled with VC++ 7.1.


You are right. Version 7.1 compiles nested templates. My last try was
version 6.x.


Well, that's a vintage 1997 compiler, judging it by ISO 14882-1998 is
not a fair criticism. The only major feature missing nowadays is
'export', and that's a common omission.

Regards,
Michiel Salters
Jul 22 '05 #11
"Steven T. Hatton" <su******@setidava.kushan.aa> wrote in message news:<GM********************@speakeasy.net>...
I can't fully agree with that. There are features in gcc-3.4.0 that bring
it into better conformity with ISO/IEC 14882:1997. I believe the C++
standard has been difficult to implement. That may in part be due to the
fact that it reads, in some parts, like a leagal contract drawn up by
lawyers, not a technical document written by engineers.


The major compiler vendors send engineers to the ISO meetings, and it's
these engineers who write the standard for their own use. The difficulty
lies more in the set of problems that it's supposed to solve. For instance,
the 'export' feature has a very tricky description of how it's supposed
to work. Normal engineering documents just specify the basics, and any
implementation would be OK. A standard is different, all 'export'
implementations should implement exactly the same feature.

You can see this in the Defect Reports. For a standard, it is bad to
allow two incompatible solutions. For a normal application, requirements
allowing two solutions are better than requirements allowing one -
developers can then choose the easiest solution once they can estimate
true costs.

'export' would have been done differently if we had known its true costs,
but standards are called standards for a reason.
Jul 22 '05 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Tatu Portin | last post by:
Have this kind of struct: typedef struct { char **user_comments; /* ... */ } vorbis_comment; /* prototype */ char * read_vorbis_string ( FILE *sc);
4
by: Anthony Gallagher | last post by:
I have a bunch of libraries compiled using VC++ 6.0, and I am trying to recompile one of our projects using VC++ .NET. I get all kind of linker errors (specially in STL calls). How do I get rid of...
5
by: Hari | last post by:
Guys please help me to solve this strange problem what Iam getting as follows.. Trying to instantiate a global instance of a template class as follows :- when i build this code with debug and...
2
by: vemulakiran | last post by:
Hi all, I have doubt regarding .NET. I have a tool which was developed on VC++ 6.0(Win32 Application ). The application communicates with library (API) which was developed on VC++ 6.0 called core...
2
by: | last post by:
Everything seems to be moving to .NET and VC++ seems to be adding a lot of managed code support every new release. The questions: is unmanaged code in VC++ beeing phased out in favour of managed...
4
by: ultranet | last post by:
I have cruised around http://msdn.microsoft.com/visualc/ and the rest of the site, and i am not able to find a single C++ or VC++ certification exam that will be available after June 30, 2004. I...
1
by: Steve | last post by:
We are considering the ways to migrate our VC++ 6.0 applications to .NET platform. It would be nice to rewrite them completely in C#, but due to the time constraints this option is out of...
2
by: um | last post by:
When the POSIX pthreads library for w32 release 2-2-0 (http://sources.redhat.com/pthreads-win32/) is compiled with VC++6 then it compiles and passes all the benchmark tests in the subdirectory...
15
by: Michael Tissington | last post by:
I have a Visual Basic 6.0 ActiveX Control. It seems there is no way with VS 2005 to create a similar control for containers that host ActiverX controls, is this correct ? I'm thinking of...
7
by: Norman Diamond | last post by:
A project depends on VC runtime from Visual Studio 2005 SP1, and DotNet Framework 2. Options are set in the setup project properties, so if these two dependencies are not already installed then...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.