carnage
Junior Poster in Training
55 posts since Jan 2008
Reputation Points: 34
Solved Threads: 2
I am on windows.
Which is the compiler most widely used in the industry ?
For MS-Windows, Microsoft compilers are naturally the most widely used by professional programmers because, for one reason, MS-Windows was written by Microsoft compilers. Here is one testimonial to that statement. Professionals rarly use the Express version, which is intended for learning. The Professional version is probably the most popular versions of Visual Studio 2008 series.
Ancient Dragon
Retired & Loving It
30,042 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,341
> which compiler is the most popular
the two mainstream c++ compilers are g++ (part of gcc) and vc++ (microsoft). and it is probably a good idea to stick to one of these; they are the most popular and attract the best support from third-party library and tool developers. both are also good as far as standards compliance is concerned. both (the express version of microsoft; the compiler is identical to that in the professional version) are free (well, neither is really free in terms of what you can do with them; but both are free in that you do not have to pay for them).
if you do not mind paying for a compiler, the comeau c++ compiler http://www.comeaucomputing.com/ would be a good option.
> if it can be used with .net so that once I develop an application I would like to to be portable to different platforms.
the notion of portability in standard c++ is source code portability; all these compilers would give you that.
the only c++/CLI compiler (that generates CIL which could run on many platforms) is the one from microsoft. other CLI implementations (like mono) do not provide c++ compiler support.
vijayan121
Posting Virtuoso
1,606 posts since Dec 2006
Reputation Points: 1,159
Solved Threads: 287
the only c++/CLI compiler (that generates CIL which could run on many platforms) is the one from microsoft. other CLI implementations (like mono) do not provide c++ compiler support.
I think some Borland compilers will do that too.
Ancient Dragon
Retired & Loving It
30,042 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,341
The Bloodshed Dev C++ is an IDE. It uses MinGW (GCC).
I personally like the GCC.
Stroustrup likes the Microsoft C++.
Borland C++ is good too (but not always the best at standards-compliance).
Enjoy.
Duoas
Postaholic
2,043 posts since Oct 2007
Reputation Points: 1,140
Solved Threads: 229
I would like the community to advice as to which compiler is the most popular and if it can be used with .net so that once I develop an application I would like to to be portable to different platforms.
.NET only works on windows and you need to use Visual Studio for it
jbennet
Moderator
18,523 posts since Apr 2005
Reputation Points: 1,820
Solved Threads: 600
.NET only works on windows and you need to use Visual Studio for it
Well, that's the only official way of running it. .NET is actually just a runtime environment, similar to Java, and in theory you could run it on just about any platform (provided you had an implementation of the .NET runtime environment). On Linux, Mono is usually used to run .NET applications.
John A
Vampirical Lurker
7,630 posts since Apr 2006
Reputation Points: 2,240
Solved Threads: 339
it may be worthwhile to clarify some terminology:
the Common Language Infrastructure (CLI) is an open specification (published under ECMA-335 and ISO/IEC 23271). Microsoft, Hewlett-Packard, Intel, and others worked to standardize CLI (2000) and it was ratified by the ECMA, with ISO standardization later (2003). CLI is a specification, not an implementation; it defines a virtualized execution-environment, a common type system and a common language specification that allows multiple high-level languages to be used on different computer platforms without being rewritten for specific architectures.
CLR (Common Language Runtime) is microsoft's implementation of CLI (and contains extensions outside the CLI specification). the .Net Framework and the .NET Compact Framework (for portable devices) are two CLR implementations. microsoft has two other CLI implementations; Silverlight (for use in web browsers on windows and Mac OS X) and Shared Source Common Language Infrastructure (a reference implementation of CLI available under the shared source licensing program).
two non-microsoft open source implementations are Mono (an implementation of CLI and accompanying technologies, championed by Novell) and Portable.NET (from GNU, part of the dotGNU project).
from: http://en.wikipedia.org/wiki/Common_Language_Infrastructure
vijayan121
Posting Virtuoso
1,606 posts since Dec 2006
Reputation Points: 1,159
Solved Threads: 287