• Welcome to Powerbasic Museum 2020-B.
 

News:

Forum in repository mode. No new members allowed.

Main Menu

Visual Studio compile batch file

Started by James C. Fuller, December 22, 2014, 05:22:16 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

James C. Fuller

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

Patrice Terrier

Thanks,

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

...
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

James C. Fuller

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