View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000769 | FSSCP | scripting | public | 2006-02-01 06:26 | 2007-10-22 03:41 |
| Reporter | Goober5000 | Assigned To | WMCoolmon | ||
| Priority | normal | Severity | block | Reproducibility | always |
| Status | closed | Resolution | no change required | ||
| Summary | 0000769: Compile problem caused by Lua files | ||||
| Description | I finally figured out that most of my USE_LUA conflicts were caused by me not having the Lua #include directories specified in the VC6 project file. :p Unfortunately, now that I'm actually compiling FSO with Lua, I have a few errors. See below. Any ideas? | ||||
| Additional Information | --------------------Configuration: code - Win32 Debug-------------------- Performing Custom Build Step on ..\..\code\sound\phrases.xml Bad command or file name Bad command or file name Compiling... Ship.cpp Creating library... vDsound.lib(DSOUND.dll) : warning LNK4006: __NULL_IMPORT_DESCRIPTOR already defined in vDinput.lib(DINPUT.dll); second definition ignored --------------------Configuration: Freespace2 - Win32 Debug-------------------- Linking... LINK : warning LNK4075: ignoring /INCREMENTAL due to /DEBUGTYPE specification liblua_d.lib(lauxlib.obj) : error LNK2001: unresolved external symbol _errno liblua_d.lib(liolib.obj) : error LNK2001: unresolved external symbol _errno Debug\fs2_open_d.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. fs2_open_d.exe - 3 error(s), 2 warning(s) --------------------Configuration: Fred2 - Win32 Debug-------------------- Linking... code.lib(WinDebug.obj) : error LNK2001: unresolved external symbol _lua_getinfo code.lib(lua.obj) : error LNK2001: unresolved external symbol _lua_getinfo code.lib(WinDebug.obj) : error LNK2001: unresolved external symbol _lua_getstack code.lib(lua.obj) : error LNK2001: unresolved external symbol _lua_getstack code.lib(WinDebug.obj) : error LNK2001: unresolved external symbol _lua_settop code.lib(scripting.obj) : error LNK2001: unresolved external symbol _lua_settop code.lib(lua.obj) : error LNK2001: unresolved external symbol _lua_settop code.lib(WinDebug.obj) : error LNK2001: unresolved external symbol _lua_tostring code.lib(lua.obj) : error LNK2001: unresolved external symbol _lua_tostring code.lib(scripting.obj) : error LNK2001: unresolved external symbol _lua_settable code.lib(lua.obj) : error LNK2001: unresolved external symbol _lua_settable code.lib(scripting.obj) : error LNK2001: unresolved external symbol _lua_insert code.lib(scripting.obj) : error LNK2001: unresolved external symbol _lua_pushstring code.lib(lua.obj) : error LNK2001: unresolved external symbol _lua_pushstring code.lib(scripting.obj) : error LNK2001: unresolved external symbol _lua_type code.lib(lua.obj) : error LNK2001: unresolved external symbol _lua_type code.lib(scripting.obj) : error LNK2001: unresolved external symbol _lua_gettable code.lib(lua.obj) : error LNK2001: unresolved external symbol _lua_gettable code.lib(scripting.obj) : error LNK2001: unresolved external symbol _lua_pushnil code.lib(scripting.obj) : error LNK2001: unresolved external symbol _lua_pcall code.lib(lua.obj) : error LNK2001: unresolved external symbol _lua_pcall code.lib(scripting.obj) : error LNK2001: unresolved external symbol _lua_rawgeti code.lib(scripting.obj) : error LNK2001: unresolved external symbol _lua_pushcclosure code.lib(lua.obj) : error LNK2001: unresolved external symbol _lua_pushcclosure code.lib(scripting.obj) : error LNK2001: unresolved external symbol _lua_gettop code.lib(lua.obj) : error LNK2001: unresolved external symbol _lua_gettop code.lib(scripting.obj) : error LNK2001: unresolved external symbol _lua_close code.lib(scripting.obj) : error LNK2001: unresolved external symbol _luaL_loadbuffer code.lib(scripting.obj) : error LNK2001: unresolved external symbol _luaL_ref code.lib(lua.obj) : error LNK2001: unresolved external symbol _lua_typename code.lib(lua.obj) : error LNK2001: unresolved external symbol _lua_rawget code.lib(lua.obj) : error LNK2001: unresolved external symbol _lua_getmetatable code.lib(lua.obj) : error LNK2001: unresolved external symbol _lua_toboolean code.lib(lua.obj) : error LNK2001: unresolved external symbol _lua_tonumber code.lib(lua.obj) : error LNK2001: unresolved external symbol _lua_touserdata code.lib(lua.obj) : error LNK2001: unresolved external symbol _lua_isuserdata code.lib(lua.obj) : error LNK2001: unresolved external symbol _lua_isstring code.lib(lua.obj) : error LNK2001: unresolved external symbol _lua_isnumber code.lib(lua.obj) : error LNK2001: unresolved external symbol _lua_setmetatable code.lib(lua.obj) : error LNK2001: unresolved external symbol _luaL_getmetatable code.lib(lua.obj) : error LNK2001: unresolved external symbol _lua_newuserdata code.lib(lua.obj) : error LNK2001: unresolved external symbol _lua_pushnumber code.lib(lua.obj) : error LNK2001: unresolved external symbol _lua_pushboolean code.lib(lua.obj) : error LNK2001: unresolved external symbol _lua_pushvalue code.lib(lua.obj) : error LNK2001: unresolved external symbol _lua_iscfunction code.lib(lua.obj) : error LNK2001: unresolved external symbol _lua_setupvalue code.lib(lua.obj) : error LNK2001: unresolved external symbol _lua_strlen code.lib(lua.obj) : error LNK2001: unresolved external symbol _lua_rawset code.lib(lua.obj) : error LNK2001: unresolved external symbol _lua_newtable code.lib(lua.obj) : error LNK2001: unresolved external symbol _luaL_newmetatable code.lib(lua.obj) : error LNK2001: unresolved external symbol _luaopen_math code.lib(lua.obj) : error LNK2001: unresolved external symbol _luaopen_string code.lib(lua.obj) : error LNK2001: unresolved external symbol _luaopen_io code.lib(lua.obj) : error LNK2001: unresolved external symbol _luaopen_table code.lib(lua.obj) : error LNK2001: unresolved external symbol _luaopen_base code.lib(lua.obj) : error LNK2001: unresolved external symbol _lua_open Debug/fred2_open_d.exe : fatal error LNK1120: 44 unresolved externals Error executing link.exe. fred2_open_d.exe - 57 error(s), 0 warning(s) | ||||
| Tags | No tags attached. | ||||
|
|
Duh. I just realized I think I answered my own question. :p I'll update in a few minutes or so if I'm right. |
|
|
Make sure that the lua static lib is compiled as multithreaded and not single-threaded. That's typically where you will see this. |
|
|
Nope. :( I thought that adding the Lua #include folder to the lib tab (as well as the compile tab) would fix it, but it didn't. |
|
|
Whoops, bypassed taylor's comment there. Hang on... |
|
|
Edit: Gah, missed your update when I was writing. That should fix it though. edited on: 02-01-06 02:20 |
|
|
Yeah, that worked, and I figured out the other one. Thanks. :) |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2006-02-01 06:26 | Goober5000 | New Issue | |
| 2006-02-01 06:28 | Goober5000 | Note Added: 0004605 | |
| 2006-02-01 06:30 | taylor | Note Added: 0004606 | |
| 2006-02-01 06:51 | Goober5000 | Note Added: 0004608 | |
| 2006-02-01 07:17 | Goober5000 | Note Added: 0004612 | |
| 2006-02-01 07:19 | taylor | Note Added: 0004613 | |
| 2006-02-01 07:20 | taylor | Note Edited: 0004613 | |
| 2006-02-01 07:59 | Goober5000 | Note Added: 0004617 | |
| 2006-02-01 08:00 | Goober5000 | Status | assigned => closed |
| 2007-10-22 03:41 | taylor | Resolution | open => no change required |