简体   繁体   English

如何在VS 2008中包含Lua库

[英]How can I include Lua library in VS 2008

I'm not sure about this location. 我不确定这个位置。

In Properties > Linker > General > Additional Dependencies 在“属性”>“链接器”>“常规”>“其他依赖项”中

I have to include some library in Additional Library Directories , haven't I? 我必须在“ 其他图书馆目录”中包括一些图书馆,不是吗?

or I have to install some program in my computer? 还是我必须在计算机上安装一些程序?

The problem is I can't to use luaL_dofile, but I can use it before my computer was formatted. 问题是我不能使用luaL_dofile,但是可以在格式化计算机之前使用它。

That's why I'm not sure about library. 这就是为什么我不确定图书馆的原因。 I compile and run my code after my 我之后编译并运行代码

computer was formatted suddenly. 电脑突然格式化。 I'm pretty sure that my code has no problems 我很确定我的代码没有问题

because it can run before my computer was formatted. 因为它可以在格式化我的计算机之前运行。

Well, then, obtain the library from where you get it. 好吧,那么,从获得它的地方获取库。 Place it in some place that you know it will not be moved (or install it if an installer is provided), and do this: 将其放置在您不会移动的地方(如果提供了安装程序,则将其安装),然后执行以下操作:

Select menu item Project -> Properties -> Configuration Properties -> Linker ->Input. 选择菜单项项目->属性->配置属性->链接器->输入。

Now add the name of the library in the "Additional Dependencies" edit control. 现在,在“其他依赖项”编辑控件中添加库的名称。

You need to do two things: 您需要做两件事:

  1. Add the library directory to Libraries directory 将库目录添加到库目录
  2. Add the library name (without path, but with extension) to Linker->Input->Additional Dependencies 将库名称(无路径,但具有扩展名)添加到链接器->输入->其他依赖项

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM