FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Microsoft Visual C++ Express Stand Alone Compiler
Posts: 302
Joined: Fri Apr 23, 2010 04:30 AM
Microsoft Visual C++ Express Stand Alone Compiler
Posted: Sun Feb 26, 2017 03: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

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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Microsoft Visual C++ Express Stand Alone Compiler
Posted: Sun Feb 26, 2017 08:50 AM
Nicanor,

Muchas gracias por compartir

La forma que recomienda Microsoft es asi:

go.bat
Code (fw): Select all Collapse
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

Continue the discussion