問題描述
如何在 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.
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.
‑‑‑‑‑
參考解法
方法 1:
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.
方法 2:
You need to do two things:
- Add the library directory to Libraries directory
- Add the library name (without path, but with extension) to Linker‑>Input‑>Additional Dependencies
(by barssala、Lyubomir Vasilev、Bartek Banachewicz)