Quote:
|
Originally Posted by morpheusv6
Can GCC run on the windows platform(windows XP more specifically) or do I have to download linux for that( please recommend if yes(Fedora Core 6 or Ubuntu or any other))?
I am currently using Dev C++ and MS VC++ Express Edition 2005.
But a programming competion I attended a few months back was based on GCC.
Is there any syntax difference between those program which are compiled in MS VC++ and GCC?
Also recommend a good book to learn GCC, I already have knowledge of C and C++.
|
1. Yes, GCC has a Win32 port that runs on Windows. MinGW, as noted by tech_your_future, is available; but even the latest version (candidate release) comes with GCC-3.4.5. I compile my own GCC, binutils, win32api and mingw-runtime, which in turn is used to build and distribute ntemacs -
http://ntemacs.sourceforge.net
I have GCC-4.1.1, binutils-2.17 and other latest toolchain for Win32 - built myself of course. If I get enough requests, I may even upload it someplace.
2. GCC will compile all standard C and C++ code, provided they comply with the ANSI/ISO standards. It should be noted, however, that C99 is still not completely supported by any compiler[*]. Same goes for C++; very few compilers support the entire C++98 ISO standard.
3. I recommend official GNU manuals for GCC. You may also want to look at "An Introduction to GCC" and "Using GCC".
http://www.network-theory.co.uk/docs/gccintro/ Another good book is "Definitive Guide to GCC".
[*] - Comeau compiler is probably the only exception.