[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Linking Lua in Win32
- From: "Jeff Wojtkiewicz" <jwojtkie@...>
- Date: Tue, 20 Jul 1999 00:20:16 CDT
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)
{
lua_open();
MessageBox(NULL,"Why don't you work","test",MB_OK);
return 0;
}
_______________________________________________________________
Get Free Email and Do More On The Web. Visit http://www.msn.com