Wednesday, August 13, 2014

Lua in Visual Studio 2013

Build Lua for Windows using Visual Studio 2013 is a very straightforward task.

Project to build lua.exe:
  1. Create Project > Visual C++ > Empty Project
  2. Add Existing Item ...
    • Select all files under src except luac.c
  3. Project Property > All Configurations > Configuration Properties > C/C++ > Preprocessor > Preprocess Definitions, add: _CRT_SECURE_NO_WARNINGS

That is it.

To build luac.exe, simply repeat above steps. When selecting files, select all files, except lua.c.

No comments: