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

[REQ] MSVC 7.1 Cruft Removal + MSVC 8 Compile Fixes


  
 
 
Thread Tools Display Modes
Author Message
DS
SourceMod Developer
Join Date: Sep 2004
Location: WI, USA
Old 04-03-2006 , 10:59   [REQ] MSVC 7.1 Cruft Removal + MSVC 8 Compile Fixes
#1

MSVC 7.1
When compiling the debug builds of AMX Mod X via the MSVC 7.1 project file, a linker warning appears concerning LIBC. The attached diff files for the SLN and VCPROJ files fix this warning as well as remove old project build configs (cruft :-P) so that JITDebug, JITDebugBinLog, JITRelease, and JITReleaseBingLog are the only configurations that appear. The other configs either are no longer used or are broken.

In addition to this, another warning also appears in all builds that relates to the HLSDK. It's a macro redefinition warning for SERVER_EXECUTE. Since it happens to be defined in winspool.h, that causes a slight problem for the macro in dlls/enginecallbacks.h. So adding a "#undef SERVER_EXECUTE" before it is defined in dlls/enginecallbacks.h will correct the warning.

MSVC 8.0
AMXX does not compile cleanly using the MSVC 8 project file without some fixes to both the project file itself as well as some of the code. I have attached a zip file containing diff files to each file that has been changed in order to make AMXX compile with no errors or warnings on all the build configs.

An HLSDK fix was also required to make one of the warnings disappear. There was a macro redefinition warning regarding ARRAYSIZE in the engine/eiface.h file. Simply putting a "#undef ARRAYSIZE" before it is defined in the file which correct it.

EDIT Numero Uno: I have recently updated the MSVC8 zip file with diff files for the AMXX SDK. This will allow most modules to compile on MSVC8 fairly cleanly without modification to the source files. There still are some individual issues with each module as far as compiling with 0 warnings and such, but that's what I am currently working on now.
DS is offline
Greenberet
AMX Mod X Beta Tester
Join Date: Apr 2004
Location: Vienna
Old 04-03-2006 , 12:33  
#2

the problem with 8.0 is, that microsoft made many stupid changes in the compiler.
Try to compile hl2sdk with 8.0 you will get about 270 errors -_-
Greenberet is offline
Send a message via ICQ to Greenberet Send a message via MSN to Greenberet
 



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 05:26.


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