• Advertisement

Archived

This topic is now archived and is closed to further replies.

How to include Lua in VC++?

This topic is 5364 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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]

Share this post


Link to post
Share on other sites
//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>
}


Share this post


Link to post
Share on other sites

  • Advertisement