🎉 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++?

Started by
1 comment, last by portalguy 20 years, 10 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
Advertisement
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...
//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