• Advertisement
Sign in to follow this  

problems setting up lua in vc++ 2008

This topic is 3724 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");
	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
Sign in to follow this  

  • Advertisement