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

Multiple cross-referencing includes


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
purple_pixie
Veteran Member
Join Date: Jun 2007
Location: Winchester, England
Old 04-13-2010 , 16:48   Multiple cross-referencing includes
Reply With Quote #1

I'm getting back into plugin-writing after a heinous break, and I'm having issues.
I thought I'd step it up from AMXX to SourceMod and I'm having issues with including things ... specifically, including lots of things.

Let's assume I have two includes:

IncludeA and IncludeB

A needs to call functions declared in B and vice-versa ... what's the protocol for getting rid of Undefined Symbol errors here?
purple_pixie is offline
FaTony
Veteran Member
Join Date: Aug 2008
Old 04-13-2010 , 21:24   Re: Multiple cross-referencing includes
Reply With Quote #2

Since SourceMod doesn't need forward declarations there should be no issues. That's in case all your includes contain implementation.
FaTony is offline
purple_pixie
Veteran Member
Join Date: Jun 2007
Location: Winchester, England
Old 04-13-2010 , 22:28   Re: Multiple cross-referencing includes
Reply With Quote #3

Humph, I guess it's just an infuriating case of a tiny mistake propagating through into a totally erroneous error message then.

Well, mister tiny mistake, I have an empty night and a lot of caffeine ... Bring it on :-)
purple_pixie is offline
FaTony
Veteran Member
Join Date: Aug 2008
Old 04-13-2010 , 23:38   Re: Multiple cross-referencing includes
Reply With Quote #4

Must be a missing brace.
FaTony is offline
purple_pixie
Veteran Member
Join Date: Jun 2007
Location: Winchester, England
Old 04-14-2010 , 00:42   Re: Multiple cross-referencing includes
Reply With Quote #5

Yeah, I tracked the beggar down :-)

Cheers for the assistance, though, I probably wouldn't have gone looking, much as I was sure an error on my part was to blame.
purple_pixie is offline
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 00:57.


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