lua-users home
lua-l archive

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




On Wed, Oct 23, 2019 at 4:58 PM Clinton Reese <clinton.bruce.reese.1975@gmail.com> wrote:
Thanks everyone for the replies! There are lots of good ideas in here, and I may use many of them.

Mr. McCracken:

Yes, I would like to have that emailed to me. Thanks!

Clint Reese

On Wednesday, October 23, 2019, Tim McCracken <Tim.McCracken@utelety.com> wrote:

> 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.

I've pushed up a Visual Studio Project for 5.4 beta. I no longer specify the patch level of the version in the directory names so when the final release comes I will just update the work directory and it will build the latest. 

https://github.com/WinLua/WinLua-VisualStudio/ 

The 5.4 project can be seen here:
https://github.com/WinLua/WinLua-VisualStudio/tree/master/Visual%20Studio/5.4

All input welcome. 

Russ