Advertisement

How to include Lua in VC++?

Started by August 18, 2003 12:44 PM
1 comment, last by portalguy 21 years, 3 months ago
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...

There is no spoon

[edited by - NeonGE on August 18, 2003 1:53:14 PM]
--------------------------------------------- If God with me, Who against me?Personal Web Samuel Prince Blog...
Advertisement
//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>
}


This topic is closed to new replies.

Advertisement