lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> On Oct 23, 2019, at 5:11 PM, Tim McCracken <Tim.McCracken@utelety.com> wrote:
> 
> 
> In my experience, its not too difficult to build Lua using visual studio. Lua is written as standard C, so visual studio will compile it without changes.  Here would be my tips:
> 
> Remember that Lua itself is a library. So compile it as a library. Make sure you are not including “standalone Lua” source files in the library project.
> 
> Turn off pre -compiled headers. VERY IMPORTANT. You will probably want to turn off PCH in every think that links to it as well.
> 
> If you plan to write C++ programs, then compile the library as C++, unless you have a reason not to. If you plan to stick to C code only, then compile the library as C code. Pick one or the other to do your initial builds, then you avoid dealing with mixed models.
> 
> I don’t recall any other issues. And I don’t using any Linux environments on Windows for Lua.
> 
> 
> 
> 
I should add that I did exactly what you are attempting. Just built an empty VS project and added the files to it. I would be happy to email you the project later tonight (US CDT). Just let me know.