Microsoft Visual C++ Express Stand Alone Compiler

Microsoft Visual C++ Express Stand Alone Compiler

Postby nnicanor » Sun Feb 26, 2017 3:49 am

Hi,

I want to share how use MSVC Express 2015 C++ Compiler as stand alone like BCC or MINGW you can use for compiling 32 and 64 Bits only set environment variables in a bat file

First Install MSVC 2015 Express Compiler from https://www.visualstudio.com and select Express install
After installed find VC folder in programs files and SDK Folder and copy another folder named VC2015
set environmet variables

For environment variable vccdir you can set your custom path

SET hdir=C:\harbour your custom path

For 32 Bits

set vccdir=C:\VC2015
SET LIB=%vccdir%\LIB;%vccdir%\SDK\LIB;%vccdir%\kit\lib\x86;%vccdir%\kit\lib\ucrt\x86
SET INCLUDE=%vccdir%\INCLUDE;%vccdir%\SDK\INCLUDE;%hdir%\mvc\include;%vccdir%\kit\include\ucrt;%vccdir%\kit\include\ucrt\sys;%vccdir%\kit\include\um
SET PATH=%vccdir%\BIN;%vccdir%\SDK\BIN


For 64 Bits

set vccdir=C:\VC2015
SET LIB=%vccdir%\LIB\AMD64;%vccdir%\SDK\LIB\X64;%vccdir%\kit\lib\ucrt\x64
SET INCLUDE=%vccdir%\INCLUDE;%vccdir%\SDK\INCLUDE;%vccdir%\kit\include\ucrt
SET PATH=%vccdir%\BIN\X86_AMD64;%vccdir%\SDK\BIN\X64;%vccdir%\BIN


Regards
Last edited by nnicanor on Sun Feb 26, 2017 4:41 pm, edited 1 time in total.
Nicanor Martinez M.
Auditoria y Sistemas Ltda.
MicroExpress Ltda.
FW + FWH + XHARBOUR + HARBOUR + PELLES C + XDEVSTUDIO + XEDIT + BCC + VC_X86 + VCC_X64 + MINGW + R&R Reports + FastReport + Tdolphin + ADO + MYSQL + MARIADB + ORACLE
nnicanor@yahoo.com
nnicanor
 
Posts: 295
Joined: Fri Apr 23, 2010 4:30 am
Location: Colombia

Re: Microsoft Visual C++ Express Stand Alone Compiler

Postby Antonio Linares » Sun Feb 26, 2017 8:50 am

Nicanor,

Muchas gracias por compartir

La forma que recomienda Microsoft es asi:

go.bat
Code: Select all  Expand view
if exist "%ProgramFiles%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" call "%ProgramFiles%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"
if exist "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" call "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"
 
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41323
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 10 guests