Re: C90 IDE+compiler for Windows / educational purposes
- From: mb <matt@xxxxxxxxxxxxxxx>
- Date: Thu, 21 Feb 2008 20:53:30 -0800 (PST)
I downloaded an informational video from MS on the net, and found out
that it supports C95 and "C++98". (According to the video), one has
actually to create an empty project and add a "C++ file". Giving it a .c
extension it is treated like a C95 file. The only "problem" is that I do
not get any warning or error when not returning a value in main().
I verified it isn't treated as a C++ file, because #include <iostream>
doesn't work while it has the .c extension and works when I rename the
file to .cpp.
But the bottom line is that it supports C95 (at least VC++ 2008 Express
claims it does).
Personally, I like ningw with the insight/gdb debugger combination,
but if that long double is a deal breaker, another small less
complicated setup than the 2005/2008 express editions is the .net
framework 1.1 sdk. You can combine the 1.1 sdk with windbg from the
"debugging tools for windows" package for a decent command line/source
debugger setup. (and optionally the platform sdk to get access to
windows api headers/libs)
http://msdn2.microsoft.com/en-us/netframework/aa569264.aspx
The ".NET Framework 1.1 SDK" contains the compiler from Visual
Studio .NET 2003 which is supposedly C90 compatible. The download is
~106MB. After installing all you need in order to compile code is add
a shortcut to the command prompt and point it at a batch file to
configure a couple of environment variables.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclang/html/_clang_ANSI_Conformance.asp
"By default, the Microsoft extensions are enabled. To disable the
extensions, specify the /Za compiler option. With /Za, all non-ANSI
code generates errors or warnings."
shortcut to launch command prompt:
"cmd /k path\to\sdkvars.bat"
batch file to set environment variables "sdkvars.bat":
@ECHO OFF
SET Path=%PROGRAMFILES%\Microsoft Visual Studio .NET 2003\Vc7\bin;
%PROGRAMFILES%\Microsoft Visual Studio .NET 2003\Common7\IDE;%PATH%
SET BIN=%PROGRAMFILES%\Microsoft Visual Studio .NET 2003\Common7\IDE;
%PROGRAMFILES%\Microsoft Visual Studio .NET 2003\Vc7\bin
SET LIB=%PROGRAMFILES%\Microsoft Visual Studio .NET 2003\Vc7\Lib;
SET INCLUDE=%PROGRAMFILES%\Microsoft Visual Studio .NET
2003\Vc7\Include;
CD /D %USERPROFILE%\Desktop\src
http://www.microsoft.com/whdc/devtools/debugging/default.mspx
"You can use Debugging Tools for Windows to debug drivers,
applications, and services on systems running Windows NT 4.0, Windows
2000, Windows XP, Windows Server 2003, Windows Vista, and Windows
Server 2008 as well as for debugging the operating system itself.
Versions of the Debugging Tools for Windows package are available for
32-bit x86, native Intel Itanium, and native x64 platforms."
.
- Follow-Ups:
- Re: C90 IDE+compiler for Windows / educational purposes
- From: Ioannis Vranos
- Re: C90 IDE+compiler for Windows / educational purposes
- References:
- Re: C90 IDE+compiler for Windows / educational purposes
- From: Ioannis Vranos
- Re: C90 IDE+compiler for Windows / educational purposes
- From: Nick Keighley
- Re: C90 IDE+compiler for Windows / educational purposes
- From: Ioannis Vranos
- Re: C90 IDE+compiler for Windows / educational purposes
- From: santosh
- Re: C90 IDE+compiler for Windows / educational purposes
- From: Ioannis Vranos
- Re: C90 IDE+compiler for Windows / educational purposes
- Prev by Date: Re: C90 IDE+compiler for Windows / educational purposes
- Next by Date: where the storage will be allocated
- Previous by thread: Re: C90 IDE+compiler for Windows / educational purposes
- Next by thread: Re: C90 IDE+compiler for Windows / educational purposes
- Index(es):
Relevant Pages
|