Raised This Month: $32 Target: $400
 8% 

Compile Errors


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MagicShot
Senior Member
Join Date: Mar 2004
Location: MN
Old 03-14-2004 , 05:57   Compile Errors
Reply With Quote #1

This is the error I get When Trying to compile csstats:

Code:
------ Build started: Project: csstats, Configuration: Debug Win32 ------ Compiling... usermsg.cpp c:\Documents and Settings\Magic-Shot\Desktop\amxmodx\amxmodx\csstats\usermsg.cpp(36) : fatal error C1083: Cannot open include file: 'sdk_util.h': No such file or directory rank.cpp c:\Documents and Settings\Magic-Shot\Desktop\amxmodx\amxmodx\csstats\rank.cpp(36) : fatal error C1083: Cannot open include file: 'sdk_util.h': No such file or directory meta_api.cpp c:\Documents and Settings\Magic-Shot\Desktop\amxmodx\amxmodx\csstats\meta_api.cpp(36) : fatal error C1083: Cannot open include file: 'meta_api.h': No such file or directory CRank.cpp c:\Documents and Settings\Magic-Shot\Desktop\amxmodx\amxmodx\csstats\CRank.cpp(36) : fatal error C1083: Cannot open include file: 'sdk_util.h': No such file or directory CMisc.cpp c:\Documents and Settings\Magic-Shot\Desktop\amxmodx\amxmodx\csstats\CMisc.h(39) : fatal error C1083: Cannot open include file: 'sdk_util.h': No such file or directory Build log was saved at "file://c:\Documents and Settings\Magic-Shot\Desktop\amxmodx\amxmodx\csstats\msvc\debug\BuildLog.htm" csstats - 5 error(s), 0 warning(s) ---------------------- Done ----------------------     Build: 0 succeeded, 1 failed, 0 skipped
__________________
|v|agic$hot
.
Without a Sound
MagicShot is offline
Send a message via MSN to MagicShot Send a message via Yahoo to MagicShot
MagicShot
Senior Member
Join Date: Mar 2004
Location: MN
Old 03-14-2004 , 06:00   Also
Reply With Quote #2

The files it says are missing are in that location
__________________
|v|agic$hot
.
Without a Sound
MagicShot is offline
Send a message via MSN to MagicShot Send a message via Yahoo to MagicShot
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 03-14-2004 , 06:01  
Reply With Quote #3

you need HLSdk (at least the header files) and metamod sources (at least the header files). Then, do this (assuming you have VC7): Menu: Tools->Options: Projects->VC++ Directories: Show diectories for = Include Files; create a new entry (if you placed all the files in one dir) and set the path, if you have more dirs, add the paths of all the dirs... should help
__________________
hello, i am pm
PM is offline
MagicShot
Senior Member
Join Date: Mar 2004
Location: MN
Old 03-14-2004 , 06:04   Also
Reply With Quote #4

Also,

When I goto open the amxmodx.dsw it says I need to convert it and it says its corupt...
__________________
|v|agic$hot
.
Without a Sound
MagicShot is offline
Send a message via MSN to MagicShot Send a message via Yahoo to MagicShot
[RED-Designs]
Senior Member
Join Date: Mar 2004
Location: .us
Old 03-14-2004 , 06:31   Re: Also
Reply With Quote #5

Quote:
Originally Posted by MagicShot
The files it says are missing are in that location

Re-edit previous posts please.( IE: dont double post. )



Also, as by PM you are required to have the included files from HLSDK and METAMOD(x)
__________________
.My personal Blog
."If the country were open on its borders, new
forms would certainly immigrate, and this also
would seriously disturb the relations of some
of the former inhabitants." - Charles Darwin
[RED-Designs] is offline
Send a message via AIM to [RED-Designs] Send a message via MSN to [RED-Designs] Send a message via Yahoo to [RED-Designs]
CheesyPeteza
Senior Member
Join Date: Feb 2004
Location: UK
Old 03-14-2004 , 16:58  
Reply With Quote #6

Here are the errors I get when I try to compile amxx.

This is with gcc3.31 and -march=k8 -m64

Code:
g++ -Dstricmp=strcasecmp -Dstrcmpi=strcasecmp -mcpu=k8 -O3 -m64 -fPIC -w -I. -I../metamodx -I../hlsdk/SourceCode/engine -I../hlsdk/SourceCode/common -I../hlsdk/SourceCode/dlls -I../hlsdk/SourceCode/game_shared -I../hlsdk/SourceCode/network -I../hlsdk/SourceCode/pm_shared -c amxmod.cpp -o amxmod.o
In file included from amxmod.h:41,
                 from amxmod.cpp:35:
CModule.h:76: error: template-argument `AMX_NATIVE_INFO*' uses anonymous type
CModule.h:76: error: ISO C++ forbids declaration of `natives' with no type
In file included from amxmod.cpp:35:
amxmod.h:219: error: non-local function `int add_amxnatives(module_info_s*,
   AMX_NATIVE_INFO*)' uses anonymous type
amx.h:123: error: `typedef struct <anonymous> AMX_NATIVE_INFO' does not refer
   to the unqualified type, so it is not used for linkage
make: *** [amxmod.o] Error 1
__________________
YO|Cheesy Peteza

[email protected]

CheesyPeteza is offline
MagicShot
Senior Member
Join Date: Mar 2004
Location: MN
Old 03-14-2004 , 17:07   Re: Also
Reply With Quote #7

Quote:
Originally Posted by [RED-Designs
]
Quote:
Originally Posted by MagicShot
The files it says are missing are in that location

Re-edit previous posts please.( IE: dont double post. )



Also, as by PM you are required to have the included files from HLSDK and METAMOD(x)
Sorry.. I was in a Hurry and tired..

Oh, Btw, MSVC7 keeps saying my amxmod_mm.dsw and I have redownloaded it several times..

Or should I be using amxmod_mm.vcproj
__________________
|v|agic$hot
.
Without a Sound
MagicShot is offline
Send a message via MSN to MagicShot Send a message via Yahoo to MagicShot
BAILOPAN
Join Date: Jan 2004
Old 03-14-2004 , 17:14  
Reply With Quote #8

Latest CVS compiles fine for me.

Quote:
gcc -O2 -m64 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -malign-loops=2 -malign-jumps=2 -malign-functions=2 -s -DNDEBUG -Wall -Wno-unknown-pragmas -DOPT_TYPE=\"optimized\" -Dstrcmpi=strcasecmp -shared -ldl -lm obj.linux/meta_api.o obj.linux/CFile.o obj.linux/CString.o obj.linux/CVault.o obj.linux/vault.o obj.linux/float.o obj.linux/file.o obj.linux/modules.o obj.linux/CMisc.o obj.linux/CTask.o obj.linux/string.o obj.linux/amxmod.o obj.linux/CEvent.o obj.linux/CCmd.o obj.linux/CLogEvent.o obj.linux/srvcmd.o obj.linux/strptime.o obj.linux/CForward.o obj.linux/CPlugin.o obj.linux/CModule.o obj.linux/CMenu.o obj.linux/emsg.o obj.linux/util.o obj.linux/amx.o obj.linux/amxcore.o obj.linux/amxtime.o obj.linux/power.o -Lextra/lib_linux -o obj.linux/amxx_mm_x64.so
[root@***** amxmodx]# gcc --version
gcc (GCC) 3.3.2 20031022 (Red Hat Linux 3.3.2-1)
__________________
egg
BAILOPAN is offline
CheesyPeteza
Senior Member
Join Date: Feb 2004
Location: UK
Old 03-14-2004 , 17:37  
Reply With Quote #9

Quote:
Originally Posted by CheesyPeteza
Here are the errors I get when I try to compile amxx.

This is with gcc3.31 and -march=k8 -m64

Code:
g++ -Dstricmp=strcasecmp -Dstrcmpi=strcasecmp -mcpu=k8 -O3 -m64 -fPIC -w -I. -I../metamodx -I../hlsdk/SourceCode/engine -I../hlsdk/SourceCode/common -I../hlsdk/SourceCode/dlls -I../hlsdk/SourceCode/game_shared -I../hlsdk/SourceCode/network -I../hlsdk/SourceCode/pm_shared -c amxmod.cpp -o amxmod.o
In file included from amxmod.h:41,
                 from amxmod.cpp:35:
CModule.h:76: error: template-argument `AMX_NATIVE_INFO*' uses anonymous type
CModule.h:76: error: ISO C++ forbids declaration of `natives' with no type
In file included from amxmod.cpp:35:
amxmod.h:219: error: non-local function `int add_amxnatives(module_info_s*,
   AMX_NATIVE_INFO*)' uses anonymous type
amx.h:123: error: `typedef struct <anonymous> AMX_NATIVE_INFO' does not refer
   to the unqualified type, so it is not used for linkage
make: *** [amxmod.o] Error 1

fixed it by changing line 120 of amx.h to:

Code:
struct AMX_NATIVE_INFO {
  char _FAR *name       PACKED;
  AMX_NATIVE func       PACKED;
};
Not that I expect it to work due to small not being 64 bit compatible. Anyone tried using the 64 bit small sources from the small forum?
__________________
YO|Cheesy Peteza

[email protected]

CheesyPeteza is offline
MagicShot
Senior Member
Join Date: Mar 2004
Location: MN
Old 03-14-2004 , 18:02   Did you..
Reply With Quote #10

Quote:
Originally Posted by BAILOPAN
Latest CVS compiles fine for me.

Quote:
gcc -O2 -m64 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -malign-loops=2 -malign-jumps=2 -malign-functions=2 -s -DNDEBUG -Wall -Wno-unknown-pragmas -DOPT_TYPE=\"optimized\" -Dstrcmpi=strcasecmp -shared -ldl -lm obj.linux/meta_api.o obj.linux/CFile.o obj.linux/CString.o obj.linux/CVault.o obj.linux/vault.o obj.linux/float.o obj.linux/file.o obj.linux/modules.o obj.linux/CMisc.o obj.linux/CTask.o obj.linux/string.o obj.linux/amxmod.o obj.linux/CEvent.o obj.linux/CCmd.o obj.linux/CLogEvent.o obj.linux/srvcmd.o obj.linux/strptime.o obj.linux/CForward.o obj.linux/CPlugin.o obj.linux/CModule.o obj.linux/CMenu.o obj.linux/emsg.o obj.linux/util.o obj.linux/amx.o obj.linux/amxcore.o obj.linux/amxtime.o obj.linux/power.o -Lextra/lib_linux -o obj.linux/amxx_mm_x64.so
[root@***** amxmodx]# gcc --version
gcc (GCC) 3.3.2 20031022 (Red Hat Linux 3.3.2-1)
Did you try and compile it with MSVC7?
...
__________________
|v|agic$hot
.
Without a Sound
MagicShot is offline
Send a message via MSN to MagicShot Send a message via Yahoo to MagicShot
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 01:37.


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