Raised This Month: $51 Target: $400
 12% 

Weird unresolved externals...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
c0ldfyr3
AlliedModders Donor
Join Date: Aug 2005
Location: Ireland
Old 03-02-2007 , 06:01   Weird unresolved externals...
Reply With Quote #1

Mornin folks,

Been trying to implement a function I found, and I thought I had it all under control untill the final compile. If I uncomment either of the two lines in this following chunk of code I start getting the link errors in the quote box.
Anybody else seen these errors before? I'm just accessing a CNetworkVar for gods sake o.O
I know I can do this another way if this fails because they're both network vars but this would save alot of hastle (if the vtables line up that is!).

Code:
CVGuiScreen *UTIL_CreateVGuiScreen( const char *pScreenClassname, const char *pScreenType, CBaseEntity *pAttachedTo, CBaseEntity *pOwner, int nAttachmentIndex )
{
	CVGuiScreen *pScreen = ( CVGuiScreen * )g_CreateEntityByName( pScreenClassname, -1 );

	CBaseAnimating_Teleport( pScreen, &vec3_origin, &vec3_angle, &vec3_origin );

	//pScreen->m_nPanelName = g_ZombiePlugin.SetStringTable( "VguiScreen", pScreenType );
	
	CBaseEntity_SetParent( pScreen, pAttachedTo );

	CBaseEntity_SetOwnerEntity( pScreen, pOwner );

	//pScreen->m_nAttachmentIndex = nAttachmentIndex;

	return pScreen;
}
Quote:
1>ZM_Util.obj : error LNK2001: unresolved external symbol "class CSharedEdictChangeInfo * g_pSharedChangeInfo" (?g_pSharedChangeInfo@@3PAVCSharedEdictChange Info@@A)

1>ZM_Util.obj : error LNK2019: unresolved external symbol "public: class IChangeInfoAccessor * __thiscall CBaseEdict::GetChangeAccessor(void)" (?GetChangeAccessor@CBaseEdict@@QAEPAVIChange InfoAccessor@@XZ) referenced in function "public: void __thiscall CBaseEdict::StateChanged(unsigned short)" (?StateChanged@CBaseEdict@@QAEXG@Z)
__________________
c0ldfyr3 is offline
Send a message via MSN to c0ldfyr3 Send a message via Yahoo to c0ldfyr3
showdax
Senior Member
Join Date: Dec 2004
Old 03-02-2007 , 14:29   Re: Weird unresolved externals...
Reply With Quote #2

Code:
$ grep -R g_pSharedChangeInfo *
dlls/gameinterface.cpp:CSharedEdictChangeInfo *g_pSharedChangeInfo = NULL;
dlls/gameinterface.cpp: g_pSharedChangeInfo = engine->GetSharedEdictChangeInfo();
Code:
$ nm server_i486.so | grep g_pSharedChangeInfo
00bd686c B g_pSharedChangeInfo
It's defined by the game DLL.
showdax is offline
Send a message via MSN to showdax
BAILOPAN
Join Date: Jan 2004
Old 03-02-2007 , 21:38   Re: Weird unresolved externals...
Reply With Quote #3

Luckily though, since as you can see by the second line, it's something you should be able to safely copy in your code. It's just a bridge between the mod and engine.
__________________
egg
BAILOPAN is offline
c0ldfyr3
AlliedModders Donor
Join Date: Aug 2005
Location: Ireland
Old 03-06-2007 , 10:36   Re: Weird unresolved externals...
Reply With Quote #4

Thanks for that.

Only seeing these replies today; BAILOPAN the emails from this board still don't work for me
__________________
c0ldfyr3 is offline
Send a message via MSN to c0ldfyr3 Send a message via Yahoo to c0ldfyr3
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:26.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode