Hm, looks like the includes werent right after all, thanks.
Though it still doesnt work, i get this...
------ 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