Author Topic: How much is too much?  (Read 6352 times)

0 Members and 1 Guest are viewing this topic.

Offline FireCrack

  • 210
  • meh...
Hmm.. i cant actualy get the code to complie in, it gives me errors about a missing luaxlib.h.

Mabye someone can help? here's some of my complier output.

Code: [Select]
sexp.cpp
..\..\code\parse\lua.h(5) : fatal error C1083: Cannot open include file: 'lauxlib.h': No such file or directory
collideweaponweapon.cpp
..\..\code\parse\lua.h(5) : fatal error C1083: Cannot open include file: 'lauxlib.h': No such file or directory
collideshipweapon.cpp
..\..\code\parse\lua.h(5) : fatal error C1083: Cannot open include file: 'lauxlib.h': No such file or directory
windebug.cpp
..\..\code\parse\lua.h(5) : fatal error C1083: Cannot open include file: 'lauxlib.h': No such file or directory

Funny thing is that none of those files, nor lua.h, seem to contain a refrence to luaxlib.cpp

I'm probably missing somthing realy basic here though...
actualy, mabye not.
"When ink and pen in hands of men Inscribe your form, bipedal P They draw an altar on which God has slaughtered all stability, no eyes could ever soak in all the places you anoint, and yet to see you all at once we only need the point. Flirting with infinity, your geometric progeny that fit inside you oh so tight with triangles that feel so right."
3.141592653589793238462643383279502884197169399375105820974944 59230781640628620899862803482534211706...
"Your ever-constant homily says flaw is discipline, the patron saint of imperfection frees us from our sin. And if our transcendental lift shall find a final floor, then Man will know the death of God where wonder was before."

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
Sounds like the Lua SDK isn't being included correctly.
-C

 

Offline Goober5000

  • HLP Loremaster
  • 214
    • Goober5000 Productions
Sounds like what happened to me before.  Check the #include directories.  What compiler are you using?

 

Offline FireCrack

  • 210
  • meh...
Hm, looks like the includes werent right after all, thanks.

Though it still doesnt work, i get this...

Code: [Select]
------ Build started: Project: Freespace2, Configuration: Debug Win32 ------

Compiling...
levelpaging.cpp
freespace.cpp
d:\games\freespace2\fs2_open\code\freespace2\freespace.cpp(3277) : warning C4702: unreachable code
d:\games\freespace2\fs2_open\code\freespace2\freespace.cpp(3297) : warning C4702: unreachable code
d:\games\freespace2\fs2_open\code\freespace2\freespace.cpp(3302) : warning C4702: unreachable code
Compiling resources...
Linking...
freespace.obj : error LNK2019: unresolved external symbol "public: int __thiscall script_state::RunBytecode(struct script_hook &,char,void *)" (?RunBytecode@script_state@@QAEHAAUscript_hook@@DPAX@Z) referenced in function "void __cdecl game_init(void)" (?game_init@@YAXXZ)
code.lib(2d.obj) : error LNK2019: unresolved external symbol "public: int __thiscall script_state::RunBytecode(struct script_hook &,char,void *)" (?RunBytecode@script_state@@QAEHAAUscript_hook@@DPAX@Z) referenced in function "void __cdecl gr_detect_cpu(int *,int *,int *,int *)" (?gr_detect_cpu@@YAXPAH000@Z)
code.lib(collideweaponweapon.obj) : error LNK2001: unresolved external symbol "public: int __thiscall script_state::RunBytecode(struct script_hook &,char,void *)" (?RunBytecode@script_state@@QAEHAAUscript_hook@@DPAX@Z)
code.lib(collideshipweapon.obj) : error LNK2001: unresolved external symbol "public: int __thiscall script_state::RunBytecode(struct script_hook &,char,void *)" (?RunBytecode@script_state@@QAEHAAUscript_hook@@DPAX@Z)
code.lib(collideweaponweapon.obj) : error LNK2001: unresolved external symbol "class script_state Script_system" (?Script_system@@3Vscript_state@@A)
code.lib(collideshipweapon.obj) : error LNK2001: unresolved external symbol "class script_state Script_system" (?Script_system@@3Vscript_state@@A)
freespace.obj : error LNK2001: unresolved external symbol "class script_state Script_system" (?Script_system@@3Vscript_state@@A)
code.lib(2d.obj) : error LNK2019: unresolved external symbol "class script_state Script_system" (?Script_system@@3Vscript_state@@A) referenced in function "void __cdecl gr_detect_cpu(int *,int *,int *,int *)" (?gr_detect_cpu@@YAXPAH000@Z)
code.lib(sexp.obj) : error LNK2001: unresolved external symbol "class script_state Script_system" (?Script_system@@3Vscript_state@@A)
code.lib(weapons.obj) : error LNK2001: unresolved external symbol "class script_state Script_system" (?Script_system@@3Vscript_state@@A)
freespace.obj : error LNK2001: unresolved external symbol "struct script_hook Script_gameinithook" (?Script_gameinithook@@3Uscript_hook@@A)
freespace.obj : error LNK2019: unresolved external symbol "void __cdecl ai_profiles_init(void)" (?ai_profiles_init@@YAXXZ) referenced in function "void __cdecl game_init(void)" (?game_init@@YAXXZ)
freespace.obj : error LNK2019: unresolved external symbol "void __cdecl script_init(void)" (?script_init@@YAXXZ) referenced in function "void __cdecl game_init(void)" (?game_init@@YAXXZ)
freespace.obj : error LNK2001: unresolved external symbol "struct script_hook Script_simulationhook" (?Script_simulationhook@@3Uscript_hook@@A)
freespace.obj : error LNK2019: unresolved external symbol "public: void __thiscall script_state::SetGlobal(char *,char,void *)" (?SetGlobal@script_state@@QAEXPADDPAX@Z) referenced in function "void __cdecl obj_script_set_global(char *,struct object *)" (?obj_script_set_global@@YAXPADPAUobject@@@Z)
code.lib(collideweaponweapon.obj) : error LNK2001: unresolved external symbol "public: void __thiscall script_state::SetGlobal(char *,char,void *)" (?SetGlobal@script_state@@QAEXPADDPAX@Z)
code.lib(collideshipweapon.obj) : error LNK2001: unresolved external symbol "public: void __thiscall script_state::SetGlobal(char *,char,void *)" (?SetGlobal@script_state@@QAEXPADDPAX@Z)
freespace.obj : error LNK2001: unresolved external symbol "class lua_obj<struct object_h> l_Object" (?l_Object@@3V?$lua_obj@Uobject_h@@@@A)
freespace.obj : error LNK2001: unresolved external symbol "class lua_obj<struct object_h> l_Ship" (?l_Ship@@3V?$lua_obj@Uobject_h@@@@A)
code.lib(collideshipweapon.obj) : error LNK2001: unresolved external symbol "class lua_obj<struct object_h> l_Ship" (?l_Ship@@3V?$lua_obj@Uobject_h@@@@A)
freespace.obj : error LNK2019: unresolved external symbol "public: void __thiscall script_state::RemGlobal(char *)" (?RemGlobal@script_state@@QAEXPAD@Z) referenced in function "void __cdecl obj_script_set_global(char *,struct object *)" (?obj_script_set_global@@YAXPADPAUobject@@@Z)
code.lib(collideweaponweapon.obj) : error LNK2001: unresolved external symbol "public: void __thiscall script_state::RemGlobal(char *)" (?RemGlobal@script_state@@QAEXPAD@Z)
code.lib(collideshipweapon.obj) : error LNK2001: unresolved external symbol "public: void __thiscall script_state::RemGlobal(char *)" (?RemGlobal@script_state@@QAEXPAD@Z)
freespace.obj : error LNK2001: unresolved external symbol "struct script_hook Script_hudhook" (?Script_hudhook@@3Uscript_hook@@A)
freespace.obj : error LNK2019: unresolved external symbol "public: void __thiscall script_state::UnloadImages(void)" (?UnloadImages@script_state@@QAEXXZ) referenced in function "void __cdecl game_leave_state(int,int)" (?game_leave_state@@YAXHH@Z)
freespace.obj : error LNK2001: unresolved external symbol "struct script_hook Script_splashhook" (?Script_splashhook@@3Uscript_hook@@A)
code.lib(missionparse.obj) : error LNK2019: unresolved external symbol "int __cdecl ai_profile_lookup(char *)" (?ai_profile_lookup@@YAHPAD@Z) referenced in function "void __cdecl parse_mission_info(struct mission *)" (?parse_mission_info@@YAXPAUmission@@@Z)
code.lib(missionparse.obj) : error LNK2001: unresolved external symbol "struct ai_profile_t * Ai_profiles" (?Ai_profiles@@3PAUai_profile_t@@A)
code.lib(missionparse.obj) : error LNK2001: unresolved external symbol "int Default_ai_profile" (?Default_ai_profile@@3HA)
code.lib(missionparse.obj) : error LNK2019: unresolved external symbol "char * __cdecl dock_find_dockpoint_used_by_object(struct p_object *,struct p_object *)" (?dock_find_dockpoint_used_by_object@@YAPADPAUp_object@@0@Z) referenced in function "void __cdecl parse_dock_one_docked_object(struct p_object *,struct p_object *)" (?parse_dock_one_docked_object@@YAXPAUp_object@@0@Z)
code.lib(missionparse.obj) : error LNK2019: unresolved external symbol "void __cdecl dock_dock_docked_objects(struct p_object *)" (?dock_dock_docked_objects@@YAXPAUp_object@@@Z) referenced in function "int __cdecl parse_create_object(struct p_object *)" (?parse_create_object@@YAHPAUp_object@@@Z)
code.lib(missionparse.obj) : error LNK2019: unresolved external symbol "void __cdecl dock_evaluate_all_docked_objects(struct p_object *,struct p_dock_function_info *,void (__cdecl*)(struct p_object *,struct p_dock_function_info *))" (?dock_evaluate_all_docked_objects@@YAXPAUp_object@@PAUp_dock_function_info@@P6AX01@Z@Z) referenced in function "int __cdecl parse_create_object(struct p_object *)" (?parse_create_object@@YAHPAUp_object@@@Z)
code.lib(missionparse.obj) : error LNK2019: unresolved external symbol "bool __cdecl object_is_docked(struct p_object *)" (?object_is_docked@@YA_NPAUp_object@@@Z) referenced in function "int __cdecl parse_create_object(struct p_object *)" (?parse_create_object@@YAHPAUp_object@@@Z)
code.lib(missionparse.obj) : error LNK2019: unresolved external symbol "void __cdecl dock_free_instances(struct p_object *)" (?dock_free_instances@@YAXPAUp_object@@@Z) referenced in function "void __cdecl mission_parse_close(void)" (?mission_parse_close@@YAXXZ)
code.lib(missionparse.obj) : error LNK2019: unresolved external symbol "void __cdecl dock_dock_objects(struct p_object *,char *,struct p_object *,char *)" (?dock_dock_objects@@YAXPAUp_object@@PAD01@Z) referenced in function "void __cdecl mission_parse_set_up_initial_docks(void)" (?mission_parse_set_up_initial_docks@@YAXXZ)
code.lib(missionparse.obj) : error LNK2019: unresolved external symbol "bool __cdecl dock_check_find_direct_docked_object(struct p_object *,struct p_object *)" (?dock_check_find_direct_docked_object@@YA_NPAUp_object@@0@Z) referenced in function "void __cdecl mission_parse_set_up_initial_docks(void)" (?mission_parse_set_up_initial_docks@@YAXXZ)
code.lib(2d.obj) : error LNK2001: unresolved external symbol "struct script_hook Script_globalhook" (?Script_globalhook@@3Uscript_hook@@A)
code.lib(cmdline.obj) : error LNK2001: unresolved external symbol "bool Output_scripting_meta" (?Output_scripting_meta@@3_NA)
code.lib(windebug.obj) : error LNK2019: unresolved external symbol "void __cdecl lua_stackdump(struct lua_State *,char *)" (?lua_stackdump@@YAXPAUlua_State@@PAD@Z) referenced in function "void __cdecl LuaError(struct lua_State *,char *,...)" (?LuaError@@YAXPAUlua_State@@PADZZ)
code.lib(sexp.obj) : error LNK2019: unresolved external symbol "public: bool __thiscall script_state::EvalString(char *,char *,void *,char *)" (?EvalString@script_state@@QAE_NPAD0PAX0@Z) referenced in function "int __cdecl sexp_script_eval(int,bool)" (?sexp_script_eval@@YAHH_N@Z)
code.lib(ship.obj) : error LNK2019: unresolved external symbol "char * __cdecl defaults_get_file(char *)" (?defaults_get_file@@YAPADPAD@Z) referenced in function "void __cdecl parse_shiptype_tbl(char *)" (?parse_shiptype_tbl@@YAXPAD@Z)
code.lib(species_defs.obj) : error LNK2001: unresolved external symbol "char * __cdecl defaults_get_file(char *)" (?defaults_get_file@@YAPADPAD@Z)
code.lib(iff_defs.obj) : error LNK2001: unresolved external symbol "char * __cdecl defaults_get_file(char *)" (?defaults_get_file@@YAPADPAD@Z)
code.lib(weapons.obj) : error LNK2019: unresolved external symbol "public: struct script_hook __thiscall script_state::ParseChunk(char *)" (?ParseChunk@script_state@@QAE?AUscript_hook@@PAD@Z) referenced in function "int __cdecl parse_weapon(int,bool)" (?parse_weapon@@YAHH_N@Z)
code.lib(collideweaponweapon.obj) : error LNK2001: unresolved external symbol "class lua_obj<struct object_h> l_Weapon" (?l_Weapon@@3V?$lua_obj@Uobject_h@@@@A)
code.lib(collideshipweapon.obj) : error LNK2001: unresolved external symbol "class lua_obj<struct object_h> l_Weapon" (?l_Weapon@@3V?$lua_obj@Uobject_h@@@@A)
Debug/fs2_open_d.exe : fatal error LNK1120: 30 unresolved externals
Project : warning PRJ0018 : The following environment variables were not found:
$(FS2PATH)

Build log was saved at "file://d:\Games\FreeSpace2\fs2_open\projects\Msvc_2003\Debug\Profile\BuildLog.htm"
Freespace2 - 47 error(s), 3 warning(s)

Those all seem to be fairly related, i'm using MS Visual Studio 2003
« Last Edit: February 16, 2006, 11:48:29 am by FireCrack »
actualy, mabye not.
"When ink and pen in hands of men Inscribe your form, bipedal P They draw an altar on which God has slaughtered all stability, no eyes could ever soak in all the places you anoint, and yet to see you all at once we only need the point. Flirting with infinity, your geometric progeny that fit inside you oh so tight with triangles that feel so right."
3.141592653589793238462643383279502884197169399375105820974944 59230781640628620899862803482534211706...
"Your ever-constant homily says flaw is discipline, the patron saint of imperfection frees us from our sin. And if our transcendental lift shall find a final floor, then Man will know the death of God where wonder was before."

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
You're missing some of the files that were added to CVS, but not to the project files. Do a find-in-files for the missing symbols in the "fs2_open/code" directory, and add any files that pop up that aren't in the project.

Right off the top of my head it looks like you're missing parse/lua.cpp, parse/scripting.cpp, object/objectdock.cpp, ai/ai_profile.cpp and their respective .h files (You don't have to add the .h files to the project but it's a really good idea)
-C

 

Offline FireCrack

  • 210
  • meh...
Aha! That did it, thanks for all the help!

Turns out i actuly had objectdock, but not parseobjectdock ot def_files though.
actualy, mabye not.
"When ink and pen in hands of men Inscribe your form, bipedal P They draw an altar on which God has slaughtered all stability, no eyes could ever soak in all the places you anoint, and yet to see you all at once we only need the point. Flirting with infinity, your geometric progeny that fit inside you oh so tight with triangles that feel so right."
3.141592653589793238462643383279502884197169399375105820974944 59230781640628620899862803482534211706...
"Your ever-constant homily says flaw is discipline, the patron saint of imperfection frees us from our sin. And if our transcendental lift shall find a final floor, then Man will know the death of God where wonder was before."