🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
How to include Lua in VC++?
Can anybody tell me how to include Lua 5.0 in VC++. I downloaded it but don''t know how to include hte libraries.
Thanks
Put this on your header file
#pragma comment(lib, "lua.lib")
#pragma comment(lib, "luaxlib.lib")
---------------------------------------------
If God with me, Who against me?
Sitio de desarrollo de videojuegos en español
Digital Moon Studio...
[edited by - NeonGE on August 18, 2003 1:53:14 PM]
#pragma comment(lib, "lua.lib")
#pragma comment(lib, "luaxlib.lib")
---------------------------------------------
If God with me, Who against me?
Sitio de desarrollo de videojuegos en español
Digital Moon Studio...
![There is no spoon](http://www.danasoft.com/vipersig.jpg)
[edited by - NeonGE on August 18, 2003 1:53:14 PM]
//include the libraries
#pragma comment(lib, "lua.lib")
#pragma comment(lib, "lualib.lib")
//include the headers
extern "C"
{
#include <lua.h>
#include <lualib.h>
#include <lauxlib.h>
}
#pragma comment(lib, "lua.lib")
#pragma comment(lib, "lualib.lib")
//include the headers
extern "C"
{
#include <lua.h>
#include <lualib.h>
#include <lauxlib.h>
}
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement