Author Topic: Visual Studio compile batch file  (Read 2436 times)

0 Members and 1 Guest are viewing this topic.

Offline James C. Fuller

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 663
Visual Studio compile batch file
« 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

Offline Patrice Terrier

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2003
    • www.zapsolution.com
Re: Visual Studio compile batch file
« Reply #1 on: December 22, 2014, 07:20:15 PM »
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

Offline James C. Fuller

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 663
Re: Visual Studio compile batch file
« Reply #2 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