compilation - Error when compiling with luajit and lua-iup libs [visual c++ 2012] -


i wrote app luajit , lua-iup, , link app static libs. got following error:

------ build started: project: consoleapplication1, configuration: release win32 ------      creating library c:\users\root\documents\visual studio 2012\projects\consoleapplication1\release\consoleapplication1.lib , object c:\users\root\documents\visual studio 2012\projects\consoleapplication1\release\consoleapplication1.exp iup.lib(iupwindows_main.obj) : error lnk2001: unresolved external symbol _main c:\users\root\documents\visual studio 2012\projects\consoleapplication1\release\consoleapplication1.exe : fatal error lnk1120: 1 unresolved externals ========== build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== 

am missing libs , idea this?

as far know, iup's lua bindings partially written in lua. wouldn't ordinarily problem, except lua parts compiled library pre-compiled bytecode. lua bytecode , luajit bytecode different.

the right answer change iup builds lua source compiled in rather bytecode. conceivably slow down startup of iup application, make easier cross compile iup , make possible use luajit instead of standard lua.


Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -