AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Module Coding (https://forums.alliedmods.net/forumdisplay.php?f=9)
-   -   C linkage error (https://forums.alliedmods.net/showthread.php?t=295108)

killerZM 03-16-2017 09:34

C linkage error
 
PHP Code:

c:\users\mhmdbedo\desktop\module_sdk\md_sdk\amxxmodule.cpp(2250): error C2733'Meta_Query' second C linkage of overloaded function not allowed
          c
:\users\mhmdbedo\desktop\module_sdk\metamod\meta_api.h(130) : see declaration of 'Meta_Query' 

tried :
1 : https://forum.openframeworks.cc/t/er...of-0-8-0/13333

2 : http://stackoverflow.com/questions/4...-allowed-c2733

3 : http://stackoverflow.com/questions/3...ibrary-stdio-h

4 : http://stackoverflow.com/questions/2...is-not-allowed

none helped

klippy 03-16-2017 09:59

Re: C linkage error
 
Meta_Query in amxxmodule.cpp probably has a different prototype than one in meta_api.h for whatever reason. Where did you get your amxx SDK and metamod from?+

Post your code, or if you are using VS the whole project folder.

killerZM 03-16-2017 10:09

Re: C linkage error
 
i use vs 2013
sdk from https://forums.alliedmods.net/showth...27769?t=227769
i tried to compile fun module same error

klippy 03-16-2017 10:52

Re: C linkage error
 
Clone HLSDK and Metamod from
https://github.com/alliedmodders/hlsdk
https://github.com/alliedmodders/metamod-hl1

and use those instead.

Arkshine 03-16-2017 10:52

Re: C linkage error
 
https://wiki.alliedmods.net/Building_AMX_Mod_X

killerZM 03-16-2017 12:11

Re: C linkage error
 
nvm fixed
i commented :
/*
cell* get_amxaddr(AMX *amx, cell amx_addr)
{
return (cell *)(amx->base + (int)(((AMX_HEADER *)amx->base)->dat + amx_addr));
}*/

and define FN_AMMX_QUERY

Arkshine 03-16-2017 13:39

Re: C linkage error
 
You should not have to change the code and especially this one. Just follow the official way to compile and use the HLSDK/Metamod from alliedmods github repository.

killerZM 03-16-2017 16:37

Re: C linkage error
 
but it didnt compile
bcz /*
cell* get_amxaddr(AMX *amx, cell amx_addr)
{
return (cell *)(amx->base + (int)(((AMX_HEADER *)amx->base)->dat + amx_addr));
}*/

undefind symbol AMX_HEADER

klippy 03-16-2017 18:52

Re: C linkage error
 
You are doing something wrong. Just post your VS project and the whole compiler output. Damn it.

killerZM 03-17-2017 07:17

Re: C linkage error
 
how to post all VS project ? lol
no errors after commented amxx dir thing , also i updated SDKS from ur links


All times are GMT -4. The time now is 18:39.

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