Jump to content
  • Advertisement

Archived

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

portalguy

How to include Lua in VC++?

This topic is 5445 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

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

Share this post


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

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!