Source 2007 Missing Files/Failing to compile.

C++ Got ya down? Half-Life 2 Coding Related.
Post Reply
Xaymar
Polygon
Polygon
Posts: 40
Joined: Sun May 16, 2010 3:24 am
Location: Germany/Wangerland/Oldorf/Oldorferbaum 1
Contact:

Source 2007 Missing Files/Failing to compile.

Post by Xaymar »

I have been trying to compile my newly created Mod for 2007 Engine. But, surprise, somehow there are missing files.

1. weapon_sdkbase.h
Found this using Google.
Now it says this:
1>------ Rebuild All started: Project: Client SDK, Configuration: Debug Win32 ------
1> stdafx.cpp
1>cl : Command line warning D9030: '/Gm' is incompatible with multiprocessing; ignoring /MP switch
1> toolframework_client.cpp
...
1> Generating Code...
1> Compiling...
1> filesystem_helpers.cpp
1> dt_utlvector_recv.cpp
1> dt_utlvector_common.cpp
1> dt_recv.cpp
1> crtmemdebug.cpp
1> compiledcaptionswap.cpp
1> collisionutils.cpp
1> client_class.cpp
1> bone_setup.cpp
1> Generating Code...
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(990,5): warning MSB8012: TargetPath(E:\Projekte\C++\Colored World Source\src\game\client\.\Debug_sdk\Client SDK.dll) does not match the Linker's OutputFile property value (E:\Projekte\C++\Colored World Source\src\game\client\Debug_sdk\Client.dll). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(992,5): warning MSB8012: TargetName(Client SDK) does not match the Linker's OutputFile property value (Client). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
1>weapon_sdkbase.obj : error LNK2005: "int __cdecl AliasToWeaponID(char const *)" (?AliasToWeaponID@@YAHPBD@Z) already defined in sdk_shareddefs.obj
1>weapon_sdkbase.obj : error LNK2005: "char const * __cdecl WeaponIDToAlias(int)" (?WeaponIDToAlias@@YAPBDH@Z) already defined in sdk_shareddefs.obj
1> Creating library .\Debug_sdk\Client.lib and object .\Debug_sdk\Client.exp
1>weapon_mp5.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall C_WeaponSDKBase::ShouldPredict(void)" (?ShouldPredict@C_WeaponSDKBase@@UAE_NXZ)
1>weapon_pistol.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall C_WeaponSDKBase::ShouldPredict(void)" (?ShouldPredict@C_WeaponSDKBase@@UAE_NXZ)
1>weapon_sdkbase.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall C_WeaponSDKBase::ShouldPredict(void)" (?ShouldPredict@C_WeaponSDKBase@@UAE_NXZ)
1>weapon_shotgun.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall C_WeaponSDKBase::ShouldPredict(void)" (?ShouldPredict@C_WeaponSDKBase@@UAE_NXZ)
1>sdk_weapon_melee.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall C_WeaponSDKBase::ShouldPredict(void)" (?ShouldPredict@C_WeaponSDKBase@@UAE_NXZ)
1>weapon_basesdkgrenade.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall C_WeaponSDKBase::ShouldPredict(void)" (?ShouldPredict@C_WeaponSDKBase@@UAE_NXZ)
1>weapon_crowbar.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall C_WeaponSDKBase::ShouldPredict(void)" (?ShouldPredict@C_WeaponSDKBase@@UAE_NXZ)
1>weapon_grenade.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall C_WeaponSDKBase::ShouldPredict(void)" (?ShouldPredict@C_WeaponSDKBase@@UAE_NXZ)
1>weapon_pistol.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall C_WeaponSDKBase::Deploy(void)" (?Deploy@C_WeaponSDKBase@@UAE_NXZ)
1>weapon_sdkbase.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall C_WeaponSDKBase::Deploy(void)" (?Deploy@C_WeaponSDKBase@@UAE_NXZ)
1>weapon_shotgun.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall C_WeaponSDKBase::Deploy(void)" (?Deploy@C_WeaponSDKBase@@UAE_NXZ)
1>sdk_weapon_melee.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall C_WeaponSDKBase::Deploy(void)" (?Deploy@C_WeaponSDKBase@@UAE_NXZ)
1>weapon_basesdkgrenade.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall C_WeaponSDKBase::Deploy(void)" (?Deploy@C_WeaponSDKBase@@UAE_NXZ)
1>weapon_crowbar.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall C_WeaponSDKBase::Deploy(void)" (?Deploy@C_WeaponSDKBase@@UAE_NXZ)
1>weapon_mp5.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall C_WeaponSDKBase::Deploy(void)" (?Deploy@C_WeaponSDKBase@@UAE_NXZ)
1>weapon_pistol.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall C_WeaponSDKBase::Holster(class C_BaseCombatWeapon *)" (?Holster@C_WeaponSDKBase@@UAE_NPAVC_BaseCombatWeapon@@@Z)
1>weapon_sdkbase.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall C_WeaponSDKBase::Holster(class C_BaseCombatWeapon *)" (?Holster@C_WeaponSDKBase@@UAE_NPAVC_BaseCombatWeapon@@@Z)
1>weapon_shotgun.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall C_WeaponSDKBase::Holster(class C_BaseCombatWeapon *)" (?Holster@C_WeaponSDKBase@@UAE_NPAVC_BaseCombatWeapon@@@Z)
1>sdk_weapon_melee.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall C_WeaponSDKBase::Holster(class C_BaseCombatWeapon *)" (?Holster@C_WeaponSDKBase@@UAE_NPAVC_BaseCombatWeapon@@@Z)
1>weapon_basesdkgrenade.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall C_WeaponSDKBase::Holster(class C_BaseCombatWeapon *)" (?Holster@C_WeaponSDKBase@@UAE_NPAVC_BaseCombatWeapon@@@Z)
1>weapon_crowbar.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall C_WeaponSDKBase::Holster(class C_BaseCombatWeapon *)" (?Holster@C_WeaponSDKBase@@UAE_NPAVC_BaseCombatWeapon@@@Z)
1>weapon_mp5.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall C_WeaponSDKBase::Holster(class C_BaseCombatWeapon *)" (?Holster@C_WeaponSDKBase@@UAE_NPAVC_BaseCombatWeapon@@@Z)
1>weapon_mp5.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall C_WeaponSDKBase::WeaponIdle(void)" (?WeaponIdle@C_WeaponSDKBase@@UAEXXZ)
1>weapon_pistol.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall C_WeaponSDKBase::WeaponIdle(void)" (?WeaponIdle@C_WeaponSDKBase@@UAEXXZ)
1>weapon_sdkbase.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall C_WeaponSDKBase::WeaponIdle(void)" (?WeaponIdle@C_WeaponSDKBase@@UAEXXZ)
1>sdk_weapon_melee.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall C_WeaponSDKBase::WeaponIdle(void)" (?WeaponIdle@C_WeaponSDKBase@@UAEXXZ)
1>weapon_basesdkgrenade.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall C_WeaponSDKBase::WeaponIdle(void)" (?WeaponIdle@C_WeaponSDKBase@@UAEXXZ)
1>weapon_crowbar.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall C_WeaponSDKBase::WeaponIdle(void)" (?WeaponIdle@C_WeaponSDKBase@@UAEXXZ)
1>weapon_grenade.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall C_WeaponSDKBase::WeaponIdle(void)" (?WeaponIdle@C_WeaponSDKBase@@UAEXXZ)
1>weapon_sdkbase.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall C_WeaponSDKBase::Reload(void)" (?Reload@C_WeaponSDKBase@@UAE_NXZ)
1>sdk_weapon_melee.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall C_WeaponSDKBase::Reload(void)" (?Reload@C_WeaponSDKBase@@UAE_NXZ)
1>weapon_crowbar.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall C_WeaponSDKBase::Reload(void)" (?Reload@C_WeaponSDKBase@@UAE_NXZ)
1>weapon_mp5.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall C_WeaponSDKBase::Reload(void)" (?Reload@C_WeaponSDKBase@@UAE_NXZ)
1>weapon_pistol.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall C_WeaponSDKBase::Reload(void)" (?Reload@C_WeaponSDKBase@@UAE_NXZ)
1>weapon_mp5.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall C_WeaponSDKBase::SendReloadEvents(void)" (?SendReloadEvents@C_WeaponSDKBase@@UAEXXZ)
1>weapon_pistol.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall C_WeaponSDKBase::SendReloadEvents(void)" (?SendReloadEvents@C_WeaponSDKBase@@UAEXXZ)
1>weapon_sdkbase.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall C_WeaponSDKBase::SendReloadEvents(void)" (?SendReloadEvents@C_WeaponSDKBase@@UAEXXZ)
1>weapon_shotgun.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall C_WeaponSDKBase::SendReloadEvents(void)" (?SendReloadEvents@C_WeaponSDKBase@@UAEXXZ)
1>sdk_weapon_melee.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall C_WeaponSDKBase::SendReloadEvents(void)" (?SendReloadEvents@C_WeaponSDKBase@@UAEXXZ)
1>weapon_basesdkgrenade.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall C_WeaponSDKBase::SendReloadEvents(void)" (?SendReloadEvents@C_WeaponSDKBase@@UAEXXZ)
1>weapon_crowbar.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall C_WeaponSDKBase::SendReloadEvents(void)" (?SendReloadEvents@C_WeaponSDKBase@@UAEXXZ)
1>weapon_grenade.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall C_WeaponSDKBase::SendReloadEvents(void)" (?SendReloadEvents@C_WeaponSDKBase@@UAEXXZ)
1>weapon_shotgun.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall C_WeaponSDKBase::ItemPostFrame(void)" (?ItemPostFrame@C_WeaponSDKBase@@UAEXXZ)
1>weapon_basesdkgrenade.obj : error LNK2019: unresolved external symbol "public: virtual void __thiscall C_WeaponSDKBase::ItemPostFrame(void)" (?ItemPostFrame@C_WeaponSDKBase@@UAEXXZ) referenced in function "public: virtual void __thiscall C_BaseSDKGrenade::ItemPostFrame(void)" (?ItemPostFrame@C_BaseSDKGrenade@@UAEXXZ)
1>weapon_mp5.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall C_WeaponSDKBase::ItemPostFrame(void)" (?ItemPostFrame@C_WeaponSDKBase@@UAEXXZ)
1>weapon_pistol.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall C_WeaponSDKBase::ItemPostFrame(void)" (?ItemPostFrame@C_WeaponSDKBase@@UAEXXZ)
1>weapon_sdkbase.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall C_WeaponSDKBase::ItemPostFrame(void)" (?ItemPostFrame@C_WeaponSDKBase@@UAEXXZ)
1>weapon_mp5.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall C_WeaponSDKBase::PrimaryAttack(void)" (?PrimaryAttack@C_WeaponSDKBase@@UAEXXZ)
1>weapon_pistol.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall C_WeaponSDKBase::PrimaryAttack(void)" (?PrimaryAttack@C_WeaponSDKBase@@UAEXXZ)
1>weapon_sdkbase.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall C_WeaponSDKBase::PrimaryAttack(void)" (?PrimaryAttack@C_WeaponSDKBase@@UAEXXZ)
1>weapon_shotgun.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall C_WeaponSDKBase::PrimaryAttack(void)" (?PrimaryAttack@C_WeaponSDKBase@@UAEXXZ)
1>weapon_mp5.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall C_WeaponSDKBase::SecondaryAttack(void)" (?SecondaryAttack@C_WeaponSDKBase@@UAEXXZ)
1>weapon_pistol.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall C_WeaponSDKBase::SecondaryAttack(void)" (?SecondaryAttack@C_WeaponSDKBase@@UAEXXZ)
1>weapon_sdkbase.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall C_WeaponSDKBase::SecondaryAttack(void)" (?SecondaryAttack@C_WeaponSDKBase@@UAEXXZ)
1>weapon_shotgun.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall C_WeaponSDKBase::SecondaryAttack(void)" (?SecondaryAttack@C_WeaponSDKBase@@UAEXXZ)
1>.\Debug_sdk\Client.dll : fatal error LNK1120: 9 unresolved externals
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
Google gave me a No-Results page when i searched for those or mostly 404'd pages(sidenote: Using Google.de)

What do i have to do to fix those?

Using: VC++ 2010 Express, Windows SDK (Latest), DirectX SDK (Latest)
LevelNULL | XFire | GameSports | Steam | Twitter | [url=mailto://MichaelDirks@levelnull.de/]eMail[/url]
Gary
npc_advisor
npc_advisor
Posts: 1125
Joined: Sun Nov 09, 2008 7:21 am
Location: USA, FL
Contact:

Re: Source 2007 Missing Files/Failing to compile.

Post by Gary »

You fallowed this right?
http://developer.valvesoftware.com/wiki ... der_VS2010


I can't help too much, I use 2008.
Xaymar
Polygon
Polygon
Posts: 40
Joined: Sun May 16, 2010 3:24 am
Location: Germany/Wangerland/Oldorf/Oldorferbaum 1
Contact:

Re: Source 2007 Missing Files/Failing to compile.

Post by Xaymar »

Yup. Steam Forums say its Source SDK being broken again, but apparently some coders got it to work and decided not to tell how.

Debug Build:
Client SDK: failed.
Server SDK: failed.
tier1: success.
vgui_controls: success.

Release Build:
Client SDK: failed & success. (No Idea how that works, but compiler return 1 success, 1 failed)
Server SDK: failed.
tier1: success.
vgui_controls: success.
LevelNULL | XFire | GameSports | Steam | Twitter | [url=mailto://MichaelDirks@levelnull.de/]eMail[/url]
Gary
npc_advisor
npc_advisor
Posts: 1125
Joined: Sun Nov 09, 2008 7:21 am
Location: USA, FL
Contact:

Re: Source 2007 Missing Files/Failing to compile.

Post by Gary »

I can compile just fine. Well, a release build.
User avatar
Neico
Lead Coder
Lead Coder
Posts: 1799
Joined: Tue Aug 15, 2006 3:39 pm
Location: Germany
Contact:

Re: Source 2007 Missing Files/Failing to compile.

Post by Neico »

debug and release build fine for me with VC 2010

also according to your compile log you seem to have just put every cpp and h file into one project and tried to compile it, use the orginal stuff... (or adjust it if you really know what you're doing)
i think it would be a good idea to upload the project files here (vcxproj sln and that filter one should be enaugh I guess)
Image
Xaymar
Polygon
Polygon
Posts: 40
Joined: Sun May 16, 2010 3:24 am
Location: Germany/Wangerland/Oldorf/Oldorferbaum 1
Contact:

Re: Source 2007 Missing Files/Failing to compile.

Post by Xaymar »

I didn't change the projects at all. Just imported them and googled the weapon_Sdkbase.h file.
When building Everything-2005.sln this results btw: ========== Build: 7 succeeded, 14 failed, 0 up-to-date, 0 skipped ==========

I'm uploading the project files atm. Connection is a bit crappy atm, so it will take a while.

~Edit~
http://uploaded.to/file/o8bisb
There it is. All files that source sdk gave me because i couldn't figure out what was needed
Last edited by Xaymar on Tue Nov 23, 2010 9:34 pm, edited 1 time in total.
LevelNULL | XFire | GameSports | Steam | Twitter | [url=mailto://MichaelDirks@levelnull.de/]eMail[/url]
User avatar
Neico
Lead Coder
Lead Coder
Posts: 1799
Joined: Tue Aug 15, 2006 3:39 pm
Location: Germany
Contact:

Re: Source 2007 Missing Files/Failing to compile.

Post by Neico »

you need to do alot of fixing in order to compile the everything projects
Image
Post Reply