Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is the C compiler located on disk for Visual C++ 2008 Express?

I'm trying to set up the Hg-Git Mercurial Extension, which recommends using the C compiler for Microsoft Visual C++ 2008. I've installed Visual C++ 2008, but I can't figure out where the C compiler is located so that I can add it to my path.

like image 592
Ben McCormack Avatar asked Feb 28 '12 01:02

Ben McCormack


2 Answers

Windows 7 / Vista:

C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\Bin\cl.exe

Windows XP:

C:\Program Files\Microsoft Visual Studio 9.0\VC\Bin\cl.exe
like image 109
hoge Avatar answered Oct 21 '22 07:10

hoge


Currently accepted answer is incorrect in case when Program Files directory has been moved away (i.e. is now on another drive, H:\Program Files or H:\Program Files (x86)), which means it is no longer available in default path (C drive).

Visual Studio 2008

Windows XP 32-bit (x86):

%ProgramFiles%\Microsoft Visual Studio 9.0\VC\bin\cl.exe

Windows Vista 32-bit and later Windows operating systems (x86):

%ProgramFiles%\Microsoft Visual Studio 9.0\VC\bin\cl.exe

Windows XP 64-bit (x64):

%ProgramFiles(x86)%\Microsoft Visual Studio 9.0\VC\bin\cl.exe

Windows Vista 64-bit and later Windows operating systems (x64):

%ProgramFiles(x86)%\Microsoft Visual Studio 9.0\VC\bin\cl.exe

like image 24
OmegaExtern Avatar answered Oct 21 '22 08:10

OmegaExtern