Raised This Month: $ Target: $400
 0% 

How can i compile a module


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ahtoh
Member
Join Date: Jun 2006
Old 03-07-2007 , 09:05   How can i compile a module
Reply With Quote #1

I've just written my new module.
What do I need to compile it to .so file?
where can i get that ../../../hlsdk and ../../metamod dirs which appears to be needed?
ahtoh is offline
ahtoh
Member
Join Date: Jun 2006
Old 03-07-2007 , 10:07   Re: How can i compile a module
Reply With Quote #2

OK i downloaded hlsdk from metamod page

now I'm getting this:

Code:
$ make
mkdir -p Release
make netdb
make[1]: Entering directory `/home/ahtoh/project/netdb'
g++     netdb.cpp   -o netdb
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../lib/crt1.o: In function `_start':
../sysdeps/i386/elf/start.S:115: undefined reference to `main'
/tmp/ccKXNYKb.o: In function `amx_netdb_gethostbyaddr(tagAMX*, int*)':
netdb.cpp:(.text+0x1a): undefined reference to `g_fn_GetAmxString'
netdb.cpp:(.text+0x98): undefined reference to `g_fn_SetAmxString'
/tmp/ccKXNYKb.o: In function `amx_netdb_gethostbyname(tagAMX*, int*)':
netdb.cpp:(.text+0xde): undefined reference to `g_fn_GetAmxString'
netdb.cpp:(.text+0x13e): undefined reference to `g_fn_SetAmxString'
/tmp/ccKXNYKb.o: In function `OnAmxxAttach()':
netdb.cpp:(.text+0x17f): undefined reference to `g_fn_AddNatives'
collect2: ld returned 1 exit status
make[1]: *** [netdb] Ошибка 1
make[1]: Leaving directory `/home/ahtoh/project/netdb'
make: *** [all] Ошибка 2

Last edited by ahtoh; 03-07-2007 at 10:25.
ahtoh 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 02:26.


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