lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

I must be missing something simple here. When I try to compile a win32 app with lua embedded in it I get the error message {unresolved external symbol "void __cdecl lua_open(void)} in visual studio.

This worked in console apps. I am sure that I have the lua.lib library linked in the project settings panel. (Just like I linked it for the console version)

Am I missing anything here? My program follows this should work I think.

#include "stdafx.h"
#include "lua.h"

int APIENTRY WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,
                    LPSTR lpCmdLine,int nCmdShow)
	MessageBox(NULL,"Why don't you work","test",MB_OK);

	return 0;

Get Free Email and Do More On The Web. Visit