PDA

View Full Version : Error Compiling Module SDK


Hawk552
05-25-2006, 09:12
Hi, I copied the module SDK files directly into VC++ 6, but it throws this error when I try to build all:


Deleting intermediate files and output files for project 'amxxmodule - Win32 Debug'.
--------------------Configuration: amxxmodule - Win32 Debug--------------------
Compiling...
amxxmodule.cpp
d:\program files\microsoft visual studio\myprojects\amxxmodule\amxxmodule.cpp(2 516) : error C2146: syntax error : missing ';' before identifier 'g_fn_AmxReRegister'
d:\program files\microsoft visual studio\myprojects\amxxmodule\amxxmodule.cpp(2 516) : error C2501: 'PFN_AMXREREGISTER' : missing storage-class or type specifiers
d:\program files\microsoft visual studio\myprojects\amxxmodule\amxxmodule.cpp(2 516) : fatal error C1004: unexpected end of file found
Error executing cl.exe.

amxxmodule.dll - 3 error(s), 0 warning(s)


I already checked it. The line in question is the middle one between these 3:


PFN_GETLOCALINFO g_fn_GetLocalInfo;
PFN_AMXREREGISTER g_fn_AmxReRegister;
PFN_REGISTERFUNCTIONEX g_fn_RegisterFunctionEx;


I don't see anything wrong with the syntax, so I'm just wondering if there's something stupid I did wrong.

As I said, I did not change anything (not even the moduleconfig.h).

BAILOPAN
05-25-2006, 12:04
I think there's a spelling error in that SDK. It should be PFN_AMX_REREGISTER or something. Try what's in CVS.

Hawk552
05-25-2006, 17:19
I think there's a spelling error in that SDK. It should be PFN_AMX_REREGISTER or something. Try what's in CVS.

I downloaded this from the CVS this morning :?

If you committed a new version of it, then I'll try it tomorrow.

Hawk552
05-30-2006, 15:13
Ok. It works now, but I can't get it to run in game. I'm running MM 1.19 and AMXX 1.71, yet it registers as "newer".

Here are my compile parameters:
/nologo /MTd /w /W0 /GX /O2 /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "AMXXMODULE_EXPORTS" /Fp"Debug/amxxmodule.pch" /YX /Fo"Debug/" /Fd"Debug/" /FD /c

BAILOPAN
05-30-2006, 19:04
If it's the 1.75 MDK, you need to be running AMX Mod X 1.75.

Hawk552
05-30-2006, 19:06
If it's the 1.75 MDK, you need to be running AMX Mod X 1.75.

That makes sense. I guess I'll have to compile it from CVS then.