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

gcc 3.* compitable HL SDK


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Nexus
Junior Member
Join Date: Mar 2004
Old 06-07-2004 , 10:13   gcc 3.* compitable HL SDK
Reply With Quote #1

where to get ?

when i try to compile i always get this error message:

../../hlsdk/multiplayer/engine/eiface.h:524:8: warning: extra tokens at end of #endif directive


# gcc -v
Reading specs from /usr/lib/gcc-lib/i586-suse-linux/3.3.3/specs
Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --enable-languages=c,c++,f77,objc,java,ada --disable-checking --libdir=/usr/lib --enable-libgcj --with-gxx-include-dir=/usr/include/g++ --with-slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexit i586-suse-linux
Thread model: posix
gcc version 3.3.3 (SuSE Linux)

glibc = 2.3.3
Nexus is offline
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 06-07-2004 , 12:59  
Reply With Quote #2

that is a simple warning, ignore it :}

Means that someone wrote something like
#endif // hehe
which should be completly harmless.
__________________
hello, i am pm
PM is offline
Nexus
Junior Member
Join Date: Mar 2004
Old 06-07-2004 , 14:37  
Reply With Quote #3

k then can you help me pls with this error messages:

Code:
 make linux
gcc -O6 -march=i686 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -falign-loops=2 -falign-jumps=2 -falign-functions=2 -s    -DNDEBUG -Wall -Wno-unknown-pragmas -DOPT_TYPE=\"optimized\" -Dstrcmpi=strcasecmp -fPIC -I../curl/include -I. -I../../metamod/metamod -I../../hlsdk/multiplayer/engine -I../../hlsdk/multiplayer/common -I../../hlsdk/multiplayer/pm_shared -I../../hlsdk/multiplayer/dlls -I../../hlsdk/multiplayer -Iextra/include -o obj.linux/meta_api.o -c meta_api.cpp
In file included from ../../hlsdk/multiplayer/dlls/extdll.h:83,
                 from meta_api.cpp:32:
../../hlsdk/multiplayer/engine/eiface.h:524:8: warning: extra tokens at end of #endif directive
In file included from amxmodx.h:39,
                 from meta_api.cpp:34:
CMisc.h: In constructor `ForceObject::ForceObject(const char*, FORCE_TYPE,
   Vector&, Vector&, AMX*)':
CMisc.h:158: warning: `ForceObject::maxs' will be initialized after
CMisc.h:154: warning:   `AMX*ForceObject::amx'
CMisc.h:161: warning:   when initialized here
In file included from amxmodx.h:41,
                 from meta_api.cpp:34:
CModule.h: At global scope:
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 amxmodx.h:42,
                 from meta_api.cpp:34:
CTask.h: In constructor `CTaskMngr::iterator::iterator(CTaskMngr::CTask*,
   CTaskMngr*)':
CTask.h:111: warning: `CTaskMngr::iterator::a' will be initialized after
CTask.h:110: warning:   `CTaskMngr*CTaskMngr::iterator::b'
CTask.h:113: warning:   when initialized here
In file included from amxmodx.h:43,
                 from meta_api.cpp:34:
CLogEvent.h: In constructor `LogEventsMngr::CLogEvent::LogCond::LogCond(int,
   LogEventsMngr::CLogEvent::LogCondEle*, LogEventsMngr::CLogEvent::LogCond*)':
CLogEvent.h:100: warning: `LogEventsMngr::CLogEvent::LogCond::argnum' will be
   initialized after
CLogEvent.h:99: warning:   `
   LogEventsMngr::CLogEvent::LogCondEle*LogEventsMngr::CLogEvent::LogCond::list
   '
CLogEvent.h:102: warning:   when initialized here
CLogEvent.h: In constructor `
   LogEventsMngr::CLogEvent::CLogEvent(CPluginMngr::CPlugin*, int,
   LogEventsMngr*)':
CLogEvent.h:108: warning: `LogEventsMngr::CLogEvent::filters' will be
   initialized after
CLogEvent.h:107: warning:   `LogEventsMngr*LogEventsMngr::CLogEvent::parent'
CLogEvent.h:110: warning:   when initialized here
CLogEvent.h: In constructor `
   LogEventsMngr::iterator::iterator(LogEventsMngr::CLogEvent*, LogEventsMngr*)
   ':
CLogEvent.h:148: warning: `LogEventsMngr::iterator::a' will be initialized
   after
CLogEvent.h:147: warning:   `LogEventsMngr*LogEventsMngr::iterator::b'
CLogEvent.h:150: warning:   when initialized here
In file included from amxmodx.h:45,
                 from meta_api.cpp:34:
CCmd.h: In constructor `CmdMngr::CmdPrefix::CmdPrefix(const char*, CmdMngr*)':
CCmd.h:104: warning: `CmdMngr::CmdPrefix::name' will be initialized after
CCmd.h:103: warning:   `CmdMngr*CmdMngr::CmdPrefix::parent'
CCmd.h:107: warning:   when initialized here
In file included from amxmodx.h:47,
                 from meta_api.cpp:34:
CEvent.h:155:31: warning: no newline at end of file
In file included from meta_api.cpp:34:
amxmodx.h: At global scope:
amxmodx.h:225: 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
meta_api.cpp: In function `void MessageBegin_Post(int, int, const float*,
   edict_t*)':
meta_api.cpp:726: warning: initialization to `int' from `float'
meta_api.cpp:726: warning: argument to `int' from `float'
make: *** [obj.linux/meta_api.o] Fehler 1
Nexus is offline
pendragon
Senior Member
Join Date: Mar 2004
Location: In a bubble
Old 06-07-2004 , 18:57  
Reply With Quote #4

LOL
__________________
pendragon is offline
Send a message via ICQ to pendragon
BAILOPAN
Join Date: Jan 2004
Old 06-07-2004 , 19:01  
Reply With Quote #5

Why are you compiling with gcc 3.3?

both gcc 3.3 and 3.4 compile it fine for me
__________________
egg
BAILOPAN is offline
Nexus
Junior Member
Join Date: Mar 2004
Old 06-08-2004 , 08:29  
Reply With Quote #6

Quote:
Originally Posted by BAILOPAN
both gcc 3.3 and 3.4 compile it fine for me
i used 3.3?


are you using the sdk provided by metamod?
Nexus is offline
Haircut
Member
Join Date: Mar 2004
Location: UK
Old 06-10-2004 , 10:27  
Reply With Quote #7

I also would like to know where to get the correct header files from.

This is always something that is never documented and is always assumed.
__________________
MardyMouse.co.uk
MardyMouse.co.uk UK DoD Server IP: 83.142.52.21:27015
Haircut is offline
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 06-10-2004 , 10:42  
Reply With Quote #8

hmm i remember that error, it was becasue of __attribute__((packed)) (using the PACKED macro) in amx.h. Only leave it after structure member declarations.

Code:
typedef struct
{
   int a PACKED;
   char *b PACKED;
} xD (no PACKED);
__________________
hello, i am pm
PM is offline
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 06-10-2004 , 16:30  
Reply With Quote #9

Is g++ the same as gcc?
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
BAILOPAN
Join Date: Jan 2004
Old 06-11-2004 , 00:50  
Reply With Quote #10

GCC is the GNU Compiler Collection, not Gnu C Compiler, so g++ is the C++ Compiler and cc is the C compiler :]
__________________
egg
BAILOPAN 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 03:33.


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