OldFisher / lua-api-pp

Lua API wrapper for C++11
Other
72 stars 15 forks source link

Build errors for Visual Studio 2015 #5

Open bagobor opened 9 years ago

bagobor commented 9 years ago

Hello, while working on performance comparison for different lua bindings libraries (https://github.com/bagobor/cpp2lua-buindings-battle) I found that lua-api-pp failed to build with VS2015 + Lua 5.2 and latest boost. I created separate fork for testing: https://github.com/bagobor/lua-api-pp (with premake script and git-submodules for boost and lua)

build log: https://gist.github.com/bagobor/80e8a647dee8e94d10b5

OldFisher commented 8 years ago

VS 2015 Community proved to be a hard nut to crack so to speak. Definitely very tricky to install, configure and make it possible even for simplest "Hello world" to be compiled. But no matter what, some important steps were made. The library version 2015-02-12-2 and its tests can be compiled with VS 2015 in no-NRVO mode (LUAPP_COMPATIBILITY_NO_NRVO macro). Most of the tests run fine, but still there are some problems. Suites "Wrappers" and "ContextFunctionUtility" run fine, but VS reports memory leaks afterwards. Suites "ContextErrorReporting" and "ContextAccessors" are getting a failure because something wrong happens to error message. Further investigation is in order so I'm not closing this issue yet. But even now it is possible to begin to use Lua API++ on VS2015 exercising some caution.