Sign in to follow this  

Visual C++ 2003 toolkit problems.

This topic is 4358 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I've started to make a Half-life 2 mod. But being that I don't have the recommended compiler tools, I needed to try and put together some sdk packages and whatnot. I, so far, have not done any modification to the Half-life 2 SDK. I'm trying to compile it without changing anything just to make sure I have all the compile options working. It keeps failing and I don't know why. I'm not sure where to turn and I've exhausted my brain in trying to find the solution on the net. I've gotten the following: Codeblocks, MS Visual C++ Toolkit 2003 .NET 2003 1.1 SDK MS Platform SDK Direct X 9 SDK and the Source SDK (half-life2) I've done the past 2 years of coding in PHP and I haven't worked within a compiler environment for a while. Learning how to compile is not so much a problem. I learnt that quickly before. What I'm really new to is using SDK's and libraries. If anyone can offer some help, that would be great.

Share this post


Link to post
Share on other sites
Here they are:

checksum_md5.cpp
convar.cpp
interface.cpp
C:\coding\platSDK\Include\WinNT.h(950) : warning C4005: 'ARRAYSIZE' : macro redefinition
c:\coding\HL2Mods\EventShift\src\public\tier0\commonmacros.h(29) : see previous definition of 'ARRAYSIZE'
mempool.cpp
resourcemanager.cpp
stringpool.cpp
utlbuffer.cpp
utlsymbol.cpp
Linking dynamic library: Debug_hl2mp\server.dll
Creating library Debug_hl2mp\server.lib and object Debug_hl2mp\server.exp
weapon_hl2mpbase_machinegun.obj : error LNK2001: unresolved external symbol __imp__RandomInt
props_shared.obj : error LNK2001: unresolved external symbol __imp__RandomInt
util_shared.obj : error LNK2001: unresolved external symbol __imp__RandomInt
bone_setup.obj : error LNK2019: unresolved external symbol __imp__RandomInt referenced in function "public: void __thiscall CUtlVector<struct ikcontextikrule_t,class CUtlMemory<struct ikcontextikrule_t> >::CopyArray(struct ikcontextikrule_t const *,int)" (?CopyArray@?$CUtlVector@Uikcontextikrule_t@@V?$CUtlMemory@Uikcontextikrule_t@@@@@@QAEXPBUikcontextikrule_t@@H@Z)
nav_area.obj : error LNK2001: unresolved external symbol __imp__RandomInt
tesla.obj : error LNK2001: unresolved external symbol __imp__RandomInt
test_stressentities.obj : error LNK2001: unresolved external symbol __imp__RandomInt
animation.obj : error LNK2001: unresolved external symbol __imp__RandomInt
npc_Barnacle.obj : error LNK2001: unresolved external symbol __imp__RandomInt
npc_citizen17.obj : error LNK2001: unresolved external symbol __imp__RandomInt
npc_combinedropship.obj : error LNK2001: unresolved external symbol __imp__RandomInt
vehicle_jeep.obj : error LNK2019: unresolved external symbol __imp__RandomInt referenced in function "public: void __thiscall CUtlMemory<class CEntityGroundContact>::Grow(int)" (?Grow@?$CUtlMemory@VCEntityGroundContact@@@@QAEXH@Z)
randoverride.obj : error LNK2019: unresolved external symbol __imp__RandomInt referenced in function _rand
SceneEntity.obj : error LNK2001: unresolved external symbol __imp__RandomInt
fish.obj : error LNK2001: unresolved external symbol __imp__RandomInt
ai_behavior_police.obj : error LNK2001: unresolved external symbol __imp__RandomInt
resourcemanager.obj : error LNK2001: unresolved external symbol __imp___ExitOnFatalAssert
stringpool.obj : error LNK2001: unresolved external symbol __imp___ExitOnFatalAssert
utlbuffer.obj : error LNK2001: unresolved external symbol __imp___ExitOnFatalAssert
utlsymbol.obj : error LNK2001: unresolved external symbol __imp___ExitOnFatalAssert
bitbuf.obj : error LNK2001: unresolved external symbol __imp___ExitOnFatalAssert
checksum_md5.obj : error LNK2001: unresolved external symbol __imp___ExitOnFatalAssert
convar.obj : error LNK2001: unresolved external symbol __imp___ExitOnFatalAssert
mempool.obj : error LNK2001: unresolved external symbol __imp___ExitOnFatalAssert
simple_physics.obj : error LNK2001: unresolved external symbol __imp___ExitOnFatalAssert
studio.obj : error LNK2019: unresolved external symbol __imp___ExitOnFatalAssert referenced in function "public: int __thiscall CUtlVector<int,class CUtlMemory<int> >::InsertMultipleBefore(int,int,int const *)" (?InsertMultipleBefore@?$CUtlVector@HV?$CUtlMemory@H@@@@QAEHHHPBH@Z)
vmatrix.obj : error LNK2001: unresolved external symbol __imp___ExitOnFatalAssert
KeyValues.obj : error LNK2001: unresolved external symbol __imp___ExitOnFatalAssert
map_utils.obj : error LNK2001: unresolved external symbol __imp___ExitOnFatalAssert
mathlib.obj : error LNK2019: unresolved external symbol __imp___ExitOnFatalAssert referenced in function "float __cdecl _sqrtf(float)" (?_sqrtf@@YAMM@Z)
rope_physics.obj : error LNK2001: unresolved external symbol __imp___ExitOnFatalAssert
scratchpad3d.obj : error LNK2001: unresolved external symbol __imp___ExitOnFatalAssert
dt_send.obj : error LNK2001: unresolved external symbol __imp___ExitOnFatalAssert
dt_utlvector_common.obj : error LNK2001: unresolved external symbol __imp___ExitOnFatalAssert
dt_utlvector_send.obj : error LNK2001: unresolved external symbol __imp___ExitOnFatalAssert
keyframe.obj : error LNK2001: unresolved external symbol __imp___ExitOnFatalAssert
ScratchPadUtils.obj : error LNK2001: unresolved external symbol __imp___ExitOnFatalAssert
SoundParametersInternal.obj : error LNK2001: unresolved external symbol __imp___ExitOnFatalAssert
StringRegistry.obj : error LNK2001: unresolved external symbol __imp___ExitOnFatalAssert
bone_setup.obj : error LNK2001: unresolved external symbol __imp___ExitOnFatalAssert
weapon_parse.obj : error LNK2001: unresolved external symbol __imp___ExitOnFatalAssert
weapon_proficiency.obj : error LNK2001: unresolved external symbol __imp___ExitOnFatalAssert
CollisionUtils.obj : error LNK2001: unresolved external symbol __imp___ExitOnFatalAssert
Editor_SendCommand.obj : error LNK2001: unresolved external symbol __imp___ExitOnFatalAssert
usercmd.obj : error LNK2001: unresolved external symbol __imp___ExitOnFatalAssert
usermessages.obj : error LNK2001: unresolved external symbol __imp___ExitOnFatalAssert
util_shared.obj : error LNK2001: unresolved external symbol __imp___ExitOnFatalAssert
voice_gamemgr.obj : error LNK2001: unresolved external symbol __imp___ExitOnFatalAssert
studio_shared.obj : error LNK2001: unresolved external symbol __imp___ExitOnFatalAssert
takedamageinfo.obj : error LNK2001: unresolved external symbol __imp___ExitOnFatalAssert
Process terminated with status 1 (12 minutes, 23 seconds)
52 errors, 7 warnings

All warnings were warning C4005: 'ARRAYSIZE' : macro redefinition


Here is my environment :
for includes:
.net 1.1 SDK
MS platform SDK
Direct X SDK
visual C++ 2003 toolkit

for libraries:
the same.

Share this post


Link to post
Share on other sites

C:\coding\platSDK\Include\WinNT.h(950) : warning C4005: 'ARRAYSIZE' : macro redefinition
c:\coding\HL2Mods\EventShift\src\public\tier0\commonmacros.h(29) : see previous definition of 'ARRAYSIZE'


Those two are conflicting... Are you sure you need the platform SDK?

About the others, it seems functions aren't declared? It might be because of the above error (or something similar)... Oh, maybe something isn't being included? I mean it seems that it's the same functions over and over, so find those functions in the code (and check to see if it uses ARRAYSIZE... just to see if it's used and the warning would cause all the errors but I highly doubt that) oh, and see if the file were they are declared in is included in the places where it needs to be...

Just thoughts, I'm still a student ;-)

Share this post


Link to post
Share on other sites

This topic is 4358 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this