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

Problem compiling with USE_METAMOD


Post New Thread Reply   
 
Thread Tools Display Modes
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 04-07-2012 , 23:17   Re: Problem compiling with USE_METAMOD
Reply With Quote #11

Ok can you upload your project files and let me check on my pc?
joaquimandrade is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 04-07-2012 , 23:24   Re: Problem compiling with USE_METAMOD
Reply With Quote #12

Quote:
Originally Posted by joaquimandrade View Post
Ok can you upload your project files and let me check on my pc?
__________________

Last edited by Bugsy; 04-08-2012 at 14:35.
Bugsy is offline
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 04-07-2012 , 23:33   Re: Problem compiling with USE_METAMOD
Reply With Quote #13

It compiles right with Visual Studio 2010 after it had convert (update) the files. I don't have an older version sorry.

Last edited by joaquimandrade; 04-07-2012 at 23:34.
joaquimandrade is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 04-07-2012 , 23:36   Re: Problem compiling with USE_METAMOD
Reply With Quote #14

Quote:
Originally Posted by joaquimandrade View Post
It compiles right with Visual Studio 2010 after it had convert (update) the files. I don't have an older version sorry.
Ok, no problem. Thank you for your time\effort. I will download the newer version, I don't know why I didn't just use that in the first place.
__________________
Bugsy is offline
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 04-07-2012 , 23:37   Re: Problem compiling with USE_METAMOD
Reply With Quote #15

Quote:
Originally Posted by Bugsy View Post
Ok, no problem. Thank you for your time\effort. I will download the newer version, I don't know why I didn't just use that in the first place.
Ok good luck
joaquimandrade is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 04-08-2012 , 00:43   Re: Problem compiling with USE_METAMOD
Reply With Quote #16

Quote:
Originally Posted by joaquimandrade View Post
Ok good luck
2010 Express gives same errors
__________________
Bugsy is offline
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 04-08-2012 , 01:47   Re: Problem compiling with USE_METAMOD
Reply With Quote #17

Ok I looked again to the message of the compiler and I think the problem should be with the included files. The hlsdk you've downloaded is hlsdk-2.3-p3?

Edit: I'm going to bed so if tomorrow it is still not working and I'll see again it then

Last edited by joaquimandrade; 04-08-2012 at 01:51.
joaquimandrade is offline
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 04-08-2012 , 09:56   Re: Problem compiling with USE_METAMOD
Reply With Quote #18

I think the problem is the METAMOD macro definition !

something like this:
Code:
 
#define macro(var)\
 
    do something;
you should delete the blank line
Code:
#define macro(var)\
    do something;
edited:
compiled the code and done !
fix the metamod, I have seen ArkShine post a fixed version !search it !
__________________
QQ:116268742

Last edited by K.K.Lv; 04-08-2012 at 10:44.
K.K.Lv is offline
Send a message via MSN to K.K.Lv
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 04-08-2012 , 11:24   Re: Problem compiling with USE_METAMOD
Reply With Quote #19

Ok, re-downloaded HLSDK as quim recommended and I can successfully compile now! Though I still get warnings.

Code:
1>------ Build started: Project: sockets2, Configuration: Debug Win32 ------
1>  sockets2.cpp
1>c:\hlsdk\multiplayer\engine\eiface.h(416): warning C4005: 'ARRAYSIZE' : macro redefinition
1>          c:\program files\microsoft sdks\windows\v7.0a\include\winnt.h(1140) : see previous definition of 'ARRAYSIZE'
1>c:\hlsdk\multiplayer\dlls\enginecallback.h(62): warning C4005: 'SERVER_EXECUTE' : macro redefinition
1>          c:\program files\microsoft sdks\windows\v7.0a\include\winspool.h(3137) : see previous definition of 'SERVER_EXECUTE'
1>c:\documents and settings\owner\desktop\sockets2module\sockets2.cpp(506): warning C4129: ' ' : unrecognized character escape sequence
1>  Generating Code...
1>  Compiling...
1>  amxxmodule.cpp
1>c:\hlsdk\multiplayer\engine\eiface.h(416): warning C4005: 'ARRAYSIZE' : macro redefinition
1>          c:\program files\microsoft sdks\windows\v7.0a\include\winnt.h(1140) : see previous definition of 'ARRAYSIZE'
1>  Generating Code...
1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(990,5): warning MSB8012: TargetPath(C:\Documents and Settings\Owner\Desktop\Sockets2Module\msvc8\Debug\sockets2.dll) does not match the Linker's OutputFile property value (C:\Documents and Settings\Owner\Desktop\Sockets2Module\msvc8\Debug\sockets2_amxx.dll). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(992,5): warning MSB8012: TargetName(sockets2) does not match the Linker's OutputFile property value (sockets2_amxx). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
1>  sockets2.vcxproj -> C:\Documents and Settings\Owner\Desktop\Sockets2Module\msvc8\Debug\sockets2.dll
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
__________________

Last edited by Bugsy; 04-08-2012 at 11:26.
Bugsy is offline
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 04-08-2012 , 11:53   Re: Problem compiling with USE_METAMOD
Reply With Quote #20

This one is in your code and you know the problem for sure

Code:
1>c:\documents and settings\owner\desktop\sockets2module\sockets2.cpp(506): warning C4129: ' ' : unrecognized character escape sequence
These

Code:
1>c:\hlsdk\multiplayer\engine\eiface.h(416): warning C4005: 'ARRAYSIZE' : macro redefinition 1>          c:\program files\microsoft sdks\windows\v7.0a\include\winnt.h(1140) : see previous definition of 'ARRAYSIZE'
1>c:\hlsdk\multiplayer\dlls\enginecallback.h(62): warning C4005: 'SERVER_EXECUTE' : macro redefinition 1>          c:\program files\microsoft sdks\windows\v7.0a\include\winspool.h(3137) : see previous definition of 'SERVER_EXECUTE'
are macros redefinitions I normally ignore them but I think you can simply before the (re)definitions do #undef MACRO.

These:
Code:
1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(990,5): warning MSB8012: TargetPath(C:\Documents and Settings\Owner\Desktop\Sockets2Module\msvc8\Debug\sockets2.dll) does not match the Linker's OutputFile property value (C:\Documents and Settings\Owner\Desktop\Sockets2Module\msvc8\Debug\sockets2_amxx.dll). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(992,5): warning MSB8012: TargetName(sockets2) does not match the Linker's OutputFile property value (sockets2_amxx). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
Are problems with the configuration files that arise from the moving to vs2010 because it does stuff differently. I also ignored it when I had it I think but you should also be able to fix it easily with some work

Last edited by joaquimandrade; 04-08-2012 at 11:56.
joaquimandrade 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 06:26.


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