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

[SOLVED] Module Compile Error - Unresolved External Symbol


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Shooting King
RAAASENGAN
Join Date: Mar 2012
Location: India
Old 10-06-2013 , 12:22   [SOLVED] Module Compile Error - Unresolved External Symbol
Reply With Quote #1

PHP Code:
1>------ Build startedProjectcsxConfigurationDebug Win32 ------
1>Build started 10/6/2013 3:28:31 AM.
1>InitializeBuildStatus:
1>  Touching "Debug\csx.unsuccessfulbuild".
1>ClCompile:
1>  CMisc.cpp
1
>C:\Documents and Settings\Administrator\My Documents\Backup\Tutorials\Amxx Modules\Hl sdk\hlsdk-2.3-p3\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:\Documents and Settings\Administrator\My Documents\Backup\Tutorials\Amxx Modules\Metamod Sdk\metamod-1.19\metamod\meta_api.error C4335Mac file format detectedplease convert the source file to either DOS or UNIX format
1
>  CRank.cpp
1
>C:\Documents and Settings\Administrator\My Documents\Backup\Tutorials\Amxx Modules\Hl sdk\hlsdk-2.3-p3\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:\Documents and Settings\Administrator\My Documents\Backup\Tutorials\Amxx Modules\Metamod Sdk\metamod-1.19\metamod\meta_api.error C4335Mac file format detectedplease convert the source file to either DOS or UNIX format
1
>  meta_api.cpp
1
>C:\Documents and Settings\Administrator\My Documents\Backup\Tutorials\Amxx Modules\Hl sdk\hlsdk-2.3-p3\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:\Documents and Settings\Administrator\My Documents\Backup\Tutorials\Amxx Modules\Metamod Sdk\metamod-1.19\metamod\meta_api.error C4335Mac file format detectedplease convert the source file to either DOS or UNIX format
1
>  rank.cpp
1
>C:\Documents and Settings\Administrator\My Documents\Backup\Tutorials\Amxx Modules\Hl sdk\hlsdk-2.3-p3\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:\Documents and Settings\Administrator\My Documents\Backup\Tutorials\Amxx Modules\Metamod Sdk\metamod-1.19\metamod\meta_api.error C4335Mac file format detectedplease convert the source file to either DOS or UNIX format
1
>  usermsg.cpp
1
>C:\Documents and Settings\Administrator\My Documents\Backup\Tutorials\Amxx Modules\Hl sdk\hlsdk-2.3-p3\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:\Documents and Settings\Administrator\My Documents\Backup\Tutorials\Amxx Modules\Metamod Sdk\metamod-1.19\metamod\meta_api.error C4335Mac file format detectedplease convert the source file to either DOS or UNIX format
1
>  amxxmodule.cpp
1
>C:\Documents and Settings\Administrator\My Documents\Backup\Tutorials\Amxx Modules\Hl sdk\hlsdk-2.3-p3\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:\Documents and Settings\Administrator\My Documents\Backup\Tutorials\Amxx Modules\Metamod Sdk\metamod-1.19\metamod\meta_api.error C4335Mac file format detectedplease convert the source file to either DOS or UNIX format
1
>..\sdk\amxxmodule.cpp(2064): error C2065'SVN_VERSION' undeclared identifier
1
>..\sdk\amxxmodule.cpp(2427): error C2065'SVN_VERSION' undeclared identifier
1
>  Generating Code...
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:06.04 
__________________
As every time said, don't ever UNDERESTIMATE me.

Donate - Here

Last edited by Shooting King; 10-13-2013 at 09:51.
Shooting King is offline
Bos93
Veteran Member
Join Date: Jul 2010
Old 10-06-2013 , 13:11   Re: Module Compile Error
Reply With Quote #2

comment this define and convert the source file to either DOS or UNIX format with notepad

Last edited by Bos93; 10-06-2013 at 13:13.
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 10-06-2013 , 15:31   Re: Module Compile Error
Reply With Quote #3

Make sure SVN_VERSION is declared before to be used.
__________________
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
Shooting King
RAAASENGAN
Join Date: Mar 2012
Location: India
Old 10-06-2013 , 23:59   Re: Module Compile Error
Reply With Quote #4

This is CSX module given by AmxModx SDK it self and the rest is from HLSDK, Microsoft SDK, MetaModSDK. Why should we have to edit it ??
__________________
As every time said, don't ever UNDERESTIMATE me.

Donate - Here

Last edited by Shooting King; 10-07-2013 at 00:04.
Shooting King is offline
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 10-07-2013 , 05:45   Re: Module Compile Error
Reply With Quote #5

Quote:
Originally Posted by Shooting King View Post
This is CSX module given by AmxModx SDK it self and the rest is from HLSDK, Microsoft SDK, MetaModSDK. Why should we have to edit it ??
Make sure your HLSDK and Meta Mod header files are alright. There are many versions that mismatch. Please try to edit as required, otherwise, I'll publish when I'll get home an archive containing these headers that work. Also I'll post some explanations.
__________________
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
Shooting King
RAAASENGAN
Join Date: Mar 2012
Location: India
Old 10-08-2013 , 01:27   Re: Module Compile Error
Reply With Quote #6

I don't understand why should you edit these SDK's ?? Doesn't these error's be rectified my Valve or respective SDK organisations ?? Or Does these people use another compiler ??
__________________
As every time said, don't ever UNDERESTIMATE me.

Donate - Here

Last edited by Shooting King; 10-08-2013 at 01:27.
Shooting King is offline
commonbullet
Veteran Member
Join Date: Oct 2005
Old 10-08-2013 , 23:17   Re: Module Compile Error
Reply With Quote #7

Quote:
Originally Posted by Shooting King View Post
I don't understand why should you edit these SDK's ?? Doesn't these error's be rectified my Valve or respective SDK organisations ?? Or Does these people use another compiler ??
It's been a long time since the latest "official" HLSDK was released. Some changes have been made in order to prevent errors and warnings on newer compilers. It's now being updated on github; you might want use the one provided on http://hg.alliedmods.net/hl2sdks since that's the source for amxmodx builds.

You should get rid of those "Mac file format detected" if you use the metamod-am from http://hg.alliedmods.net (recommended).
commonbullet is offline
Send a message via ICQ to commonbullet Send a message via MSN to commonbullet
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 10-09-2013 , 09:14   Re: Module Compile Error
Reply With Quote #8

If you use valve provided SDK you have to compile using VC6.0

There's a pull request to support VC++ 2010

https://github.com/ValveSoftware/halflife/pull/1375

Also you have to fix SVN_VERSION issue maybe you can define it in your project properties
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
Shooting King
RAAASENGAN
Join Date: Mar 2012
Location: India
Old 10-10-2013 , 03:07   Re: Module Compile Error
Reply With Quote #9

Ok. Thanks. Now my Head is Flooding with these suggestions . I have converted some of metamod headers from Mac Format and edited some errors :/. Now it shows a New Compilation error .
PHP Code:
1>------ Build startedProjectcsxConfigurationDebug Win32 ------
1>Build started 10/8/2013 10:33:24 PM.
1>InitializeBuildStatus:
1>  Touching "Debug\csx.unsuccessfulbuild".
1>ClCompile:
1>  CMisc.cpp
1
>  CRank.cpp
1
>  meta_api.cpp
1
>  rank.cpp
1
>  usermsg.cpp
1
>  amxxmodule.cpp
1
>  Generating Code...
1>Link:
1>     Creating library .\Debug/csx_amxx.lib and object .\Debug/csx_amxx.exp
1
>amxxmodule.obj error LNK2019unresolved external symbol "void __cdecl UTIL_LogPrintf(char const *,...)" (?UTIL_LogPrintf@@YAXPBDZZreferenced in function _Meta_Query
1
>C:\Documents and Settings\Administrator\My Documents\Backup\Tutorials\Amxx Modules\Amxx sdk\amxmodx-central-81ff4ff3da92\dlls\cstrike\csx\msvc10\Debug\csx_amxx.dll fatal error LNK11201 unresolved externals
1
>
1>Build FAILED.
1>
1>Time Elapsed 00:00:06.68
========== Build0 succeeded1 failed0 up-to-date0 skipped ========== 
I am using "metamod-1.19" SDK. Will it cause any problems ??
__________________
As every time said, don't ever UNDERESTIMATE me.

Donate - Here

Last edited by Shooting King; 10-10-2013 at 03:16.
Shooting King is offline
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 10-10-2013 , 09:02   Re: Module Compile Error
Reply With Quote #10

Quote:
Originally Posted by Shooting King View Post
I am using "metamod-1.19" SDK. Will it cause any problems ??
You have to use latest amxmodx/metamod/hlsdk sources supported by amxmodx
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
Reply


Thread Tools
Display Modes

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 07:04.


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