Jump to content
  • Advertisement
Sign in to follow this  
madmaurice

problems setting up lua in vc++ 2008

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

i downloaded the latest lua version and put the files into the directories. - includes to include folder - *.lib to lib folder - and *.dll to the bin folder now i made a project with the following code:
#include "stdio.h"
extern "C" {
	#include <Lua/lua.h>
}

int main(int argc, char* argv[]) {
	lua_State* state = lua_open();
	if(state == NULL) {
		printf("Lua error");
	}
	lua_close(state);
	return 0;
}

but i get this error: error C3861: 'luaL_newstate': identifier not found which is in the line "lua_State* state = lua_open();". of course i added both libs (lua51.lib and lua5.1.lib (seems to be the same)) What have i done wrong?

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • 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!