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

extension undefined symbol myself


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mastah7991
AlliedModders Donor
Join Date: Sep 2014
Location: Poland
Old 04-05-2016 , 14:42   extension undefined symbol myself
Reply With Quote #1

Hi.
i have problem with extension

Code:
#include <sourcemod_version.h>
#include "extension.h"

Test g_test;	
ISourceMod *sourcemod_h = NULL;
SMEXT_LINK(&g_test);

bool Test::SDK_OnLoad(char *error, size_t maxlength, bool late)
{
	
	sourcemod_h->LogMessage(myself,"Test Test");
	return true;
}

void Test::SDK_OnAllLoaded()
{
	sourcemod_h->LogMessage(myself,"Test Test");
}
when i want load this extension server send mi error

Code:
undefined symbol: myself
any sugestions what is wrong?
__________________
“Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.”
― Rick Cook, The Wizardry Compiled
mastah7991 is offline
psychonic

BAFFLED
Join Date: May 2008
Old 04-05-2016 , 16:04   Re: extension undefined symbol myself
Reply With Quote #2

smsdk_ext.cpp isn't getting linked.

Are you not using the included sample AMBuild script?
psychonic is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 04-06-2016 , 07:20   Re: extension undefined symbol myself
Reply With Quote #3

Off-topic:
You don't need to have your own ISourceMod * variable as smsdk_ext.h defines one already as "smutils"
WildCard65 is offline
mastah7991
AlliedModders Donor
Join Date: Sep 2014
Location: Poland
Old 04-26-2016 , 11:42   Re: extension undefined symbol myself
Reply With Quote #4

solved thank you
__________________
“Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.”
― Rick Cook, The Wizardry Compiled
mastah7991 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:16.


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