some errors recompiling amxx
I'm recompiling amxx for windows (using vc++ 2010) and I get many errors... (I didn't change something on amxx/metamod source code yet).
Code:
1>c:\hlsdk-2.3-p3\multiplayer\engine\eiface.h(416): warning C4005: 'ARRAYSIZE' : redefinición de macro PHP Code:
PHP Code:
Code:
1>c:\metamod-1.19\metamod\enginecallbacks.h : error C4335: Formato de archivo Mac detectado: convierta el archivo de código fuente en formato DOS o UNIX Code:
1>c:\metamod-1.19\metamod\meta_api.h(187): error C2059: error de sintaxis : 'do' PHP Code:
Code:
1>c:\metamod-1.19\metamod\meta_api.h(191): error C2143: error de sintaxis : falta ';' delante de '{' PHP Code:
Code:
1>c:\metamod-1.19\metamod\meta_api.h(205): error C2143: error de sintaxis : falta ';' delante de '{' PHP Code:
Code:
1>c:\metamod-1.19\metamod\meta_api.h(287): error C2061: error de sintaxis : identificador 'META_FUNCTIONS' PHP Code:
|
Re: some errors recompiling amxx
put this in eiface.h above #define ARRAYSIZE(p) (sizeof(p)/sizeof(p[0]))
Code:
#ifdef ARRAYSIZE |
Re: some errors recompiling amxx
Replace duplicate \n or duplicate \r with just one. Make sure the phrases are written properly inside the file. Use Notepad Plus Plus (Free Software) for that.
Either undefine ARRAYSIZE then define it again or just entirely change ARRAYSIZE macro definition in all HLSDK files. |
Re: some errors recompiling amxx
Thanks to both :3
Now I get this: Code:
1>..\version.rc(8): fatal error RC1015: cannot open include file 'winres.h'. |
Re: some errors recompiling amxx
Quote:
Open "version.rc" file and try to change the line: PHP Code:
PHP Code:
If not, make sure you include "winres.h" file in your project. |
Re: some errors recompiling amxx
Quote:
Edit: Solved I replaced "winres.h" with "WinResrc.h" It compiles but...
Spoiler
|
Re: some errors recompiling amxx
Quote:
http://stackoverflow.com/questions/9...-visual-studio |
Re: some errors recompiling amxx
try compile it with release configuration :D
|
Re: some errors recompiling amxx
To not create new topic...will ask here)
Quote:
|
Re: some errors recompiling amxx
Quote:
Quote:
|
All times are GMT -4. The time now is 05:15. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.