你如何将LuaPlus纳入你的项目? [英] How do you include LuaPlus into your project?

查看:158
本文介绍了你如何将LuaPlus纳入你的项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从这里下载了visual2008文件(http://luaplus.org/projects/luaplus/files),但我不知道如何将它添加到我的项目中。它不像其他库,我只需要将include目录添加到我的Visual Studio文件夹,并将bin添加到我的system32或项目文件夹。也没有头文件。我正在使用Visual Studio 2010专业版。

I downloaded the visual2008 file from here(http://luaplus.org/projects/luaplus/files), but I don't know how to add it to my project. It's not like the other libraries where I just had to add the include directory to my Visual Studio folder and the bin to my system32 or project folder. There are no header files either. I'm using Visual Studio 2010 professional.

推荐答案

我记得第一次下载LuaPlus并思考同样的事情 - 标题在哪里?您要做的只是克隆位于 GitHub 上的存储库,并使用它来构建LuaPlus你自己。作者帮助包括批处理文件以创建不同的项目文件(包括VS2010)。然后,您可以使用项目文件来构建LuaPlus,您自然也可以使用标题和文件。源文件也是如此。我不记得它是否已包含Lua的来源或者你必须自己手动完成(但这只需要一分钟的时间)。

I remember downloading LuaPlus for the first time and thinking the same thing--"Where are the headers?" What you'll want to do is just clone the repository located on GitHub and use that to build LuaPlus yourself. The author helpfully included batch files to create different project files (incl. VS2010). You can then use the project files to build LuaPlus and you'll naturally also have the headers & source files as well. I don't recall if it included Lua's source already or if you have to do it yourself manually (this only takes a minute to do, however).

这篇关于你如何将LuaPlus纳入你的项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆