View Issue Details

IDProjectCategoryView StatusLast Update
0000769FSSCPscriptingpublic2007-10-22 03:41
ReporterGoober5000 Assigned ToWMCoolmon  
PrioritynormalSeverityblockReproducibilityalways
Status closedResolutionno change required 
Summary0000769: Compile problem caused by Lua files
DescriptionI 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)
TagsNo tags attached.

Activities

Goober5000

2006-02-01 06:28

administrator   ~0004605

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.

taylor

2006-02-01 06:30

administrator   ~0004606

Make sure that the lua static lib is compiled as multithreaded and not single-threaded. That's typically where you will see this.

Goober5000

2006-02-01 06:51

administrator   ~0004608

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.

Goober5000

2006-02-01 07:17

administrator   ~0004612

Whoops, bypassed taylor's comment there. Hang on...

taylor

2006-02-01 07:19

administrator   ~0004613

Last edited: 2006-02-01 07:20

Edit: Gah, missed your update when I was writing. That should fix it though.

edited on: 02-01-06 02:20

Goober5000

2006-02-01 07:59

administrator   ~0004617

Yeah, that worked, and I figured out the other one. Thanks. :)

Issue History

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