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
Microsoft Visual C++ Express Stand Alone Compiler
Microsoft Visual C++ Express Stand Alone Compiler
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
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
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Microsoft Visual C++ Express Stand Alone Compiler
Nicanor,
Muchas gracias por compartir
La forma que recomienda Microsoft es asi:
go.bat
Muchas gracias por compartir
La forma que recomienda Microsoft es asi:
go.bat
Code: Select all
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"