Powerbasic Museum 2020-B

IT-Consultant: Patrice Terrier => Discussion => Topic started by: James C. Fuller on December 22, 2014, 05:22:16 PM

Title: Visual Studio compile batch file
Post by: James C. Fuller on December 22, 2014, 05:22:16 PM
Patrice,
  Attached is the batch file I use for Visual Studio 2013 Community. It also includes a batch file for compiling mfc too.

  VS12.BAT Hard coded for /MT
  It will also compile and add a resource file with the same base name as the cpp file.
Format:
  VS12.BAT FileNameNoExtension -m32|-m64 con|gui|dll|obj [debug|release] defaults to release

James
Title: Re: Visual Studio compile batch file
Post by: Patrice Terrier on December 22, 2014, 07:20:15 PM
Thanks,

Couldn't get it to work as i am using different version of Visual Studio.

...
Title: Re: Visual Studio compile batch file
Post by: James C. Fuller on December 22, 2014, 07:37:30 PM
Patrice,
Try this.
From a normal command prompt type SET
You should have a VSxxxCOMNTOOLS where xxx is the version you are using.
Find:
CALL "%VS120COMNTOOLS%..\..\VC\vcvarsall.bat" %XTYPE%
in the batch file and replace VS120COMNTOOLS with yours
also rem out or delete the next two lines:
SET INCLUDE=C:\VS1264\boost_1_55_0;%INCLUDE%
SET LIB=C:\VS1264\boost_1_55_0\lib64-msvc-12.0;%LIB%

James