Hello hp, #ifndef TE_HL2MP_SHOTGUN_SHOT_H #define TE_HL2MP_SHOTGUN_SHOT_H #ifdef _WIN32 < delete? #pragma once < delete? #endif < delete?
#endif // TE_HL2MP_SHOTGUN_SHOT_H ifndef define and endif is there already :/ Friday, May 27, 2005, 4:02:21 PM, you wrote: > Hello kingkoozime, > so > #ifdef _WIN32 > #pragma once > #endif > is only valid on vindows i assume. but i dont know how to replace it > so linux compiler will understand it. > and is there easy way to compile it without changing this? > pragma once is in every .h file :/ > Friday, May 27, 2005, 3:16:37 PM, you wrote: >> Make sure you get rid of any #pragma once statements, >> and replace it with #ifndef / #define / #endif, if not >> already there. >> --- hp <[EMAIL PROTECTED]> wrote: >>> Hello, >>> >>> I have problem with compiling hl2mp under linux: >>> redhat enterprise 3 >>> glib 2.3.2 >>> Xerces XML parser 2.6.0 >>> gcc 3.4.1 >>> >>> plz help i get the same error on FC3 - windows is ok >>> >>> >> obj/server/dlls/hl2mp_dll/te_hl2mp_shotgun_shot.o(.text+0xe0): >>> In function `CTEHL2MPFireBullets::GetServerClass()': >>> : multiple definition of >>> `CTEHL2MPFireBullets::GetServerClass()' >>> >> obj/server/dlls/hl2mp_dll/te_hl2mp_shotgun_shot.o(.text+0xe0): >>> first defined here >>> >> obj/server/dlls/hl2mp_dll/te_hl2mp_shotgun_shot.o(.text+0xd0): >>> In function `CTEHL2MPFireBullets::GetClassName()': >>> : multiple definition of >>> `CTEHL2MPFireBullets::GetClassName()' >>> >> obj/server/dlls/hl2mp_dll/te_hl2mp_shotgun_shot.o(.text+0xd0): >>> first defined here >>> >> obj/server/dlls/hl2mp_dll/te_hl2mp_shotgun_shot.o(.text+0xf0): >>> In function >>> >> `CTEHL2MPFireBullets::YouForgotToImplementOrDeclareServerClass()': >>> : multiple definition of >>> >> `CTEHL2MPFireBullets::YouForgotToImplementOrDeclareServerClass()' >>> >> obj/server/dlls/hl2mp_dll/te_hl2mp_shotgun_shot.o(.text+0xf0): >>> first defined here >>> >> obj/server/dlls/hl2mp_dll/te_hl2mp_shotgun_shot.o(.text+0x80): >>> In function >>> `CTEHL2MPFireBullets::~CTEHL2MPFireBullets()': >>> : multiple definition of >>> `CTEHL2MPFireBullets::~CTEHL2MPFireBullets()' >>> >> obj/server/dlls/hl2mp_dll/te_hl2mp_shotgun_shot.o(.text+0x80): >>> first defined here >>> >> obj/server/dlls/hl2mp_dll/te_hl2mp_shotgun_shot.o(.text+0xa0): >>> In function >>> `CTEHL2MPFireBullets::~CTEHL2MPFireBullets()': >>> : multiple definition of >>> `CTEHL2MPFireBullets::~CTEHL2MPFireBullets()' >>> >> obj/server/dlls/hl2mp_dll/te_hl2mp_shotgun_shot.o(.text+0xa0): >>> first defined here >>> >> obj/server/dlls/hl2mp_dll/te_hl2mp_shotgun_shot.o(.bss+0x0): >>> multiple definition of >>> `DT_TEHL2MPFireBullets::g_SendTableInit' >>> >> obj/server/dlls/hl2mp_dll/te_hl2mp_shotgun_shot.o(.bss+0x0): >>> first defined here >>> >> obj/server/dlls/hl2mp_dll/te_hl2mp_shotgun_shot.o(.bss+0x4): >>> multiple definition of >>> `DT_TEHL2MPFireBullets::g_SendTable' >>> >> obj/server/dlls/hl2mp_dll/te_hl2mp_shotgun_shot.o(.bss+0x4): >>> first defined here >>> >> obj/server/dlls/hl2mp_dll/te_hl2mp_shotgun_shot.o(.data+0x0): >>> multiple definition of >>> `CTEHL2MPFireBullets::m_pClassSendTable' >>> >> obj/server/dlls/hl2mp_dll/te_hl2mp_shotgun_shot.o(.data+0x0): >>> first defined here >>> >> obj/server/dlls/hl2mp_dll/te_hl2mp_shotgun_shot.o(.text+0x0): >>> In function >>> `CTEHL2MPFireBullets::CTEHL2MPFireBullets(char >>> const*)': >>> : multiple definition of >>> `CTEHL2MPFireBullets::CTEHL2MPFireBullets(char >>> const*)' >>> >> obj/server/dlls/hl2mp_dll/te_hl2mp_shotgun_shot.o(.text+0x0): >>> first defined here >>> >> obj/server/dlls/hl2mp_dll/te_hl2mp_shotgun_shot.o(.text+0x30): >>> In function >>> `CTEHL2MPFireBullets::CTEHL2MPFireBullets(char >>> const*)': >>> : multiple definition of >>> `CTEHL2MPFireBullets::CTEHL2MPFireBullets(char >>> const*)' >>> >> obj/server/dlls/hl2mp_dll/te_hl2mp_shotgun_shot.o(.text+0x30): >>> first defined here >>> >> obj/server/dlls/hl2mp_dll/te_hl2mp_shotgun_shot.o(.text+0x60): >>> In function >>> `CTEHL2MPFireBullets::~CTEHL2MPFireBullets()': >>> : multiple definition of >>> `CTEHL2MPFireBullets::~CTEHL2MPFireBullets()' >>> >> obj/server/dlls/hl2mp_dll/te_hl2mp_shotgun_shot.o(.text+0x60): >>> first defined here >>> >> obj/server/dlls/hl2mp_dll/te_hl2mp_shotgun_shot.o(.text+0x130): >>> In function `int >>> >> ServerClassInit<DT_TEHL2MPFireBullets::ignored>(DT_TEHL2MPFireBullets::ignored*)': >>> : multiple definition of `int >>> >> ServerClassInit<DT_TEHL2MPFireBullets::ignored>(DT_TEHL2MPFireBullets::ignored*)' >>> >> obj/server/dlls/hl2mp_dll/te_hl2mp_shotgun_shot.o(.text+0x130): >>> first defined here >>> >> obj/server/dlls/hl2mp_dll/te_hl2mp_shotgun_shot.o(.text+0x490): >>> In function `TE_HL2MPFireBullets(int, Vector const&, >>> Vector const&, int, int, int, float, bool, bool)': >>> : multiple definition of `TE_HL2MPFireBullets(int, >>> Vector const&, Vector const&, int, int, int, float, >>> bool, bool)' >>> >> obj/server/dlls/hl2mp_dll/te_hl2mp_shotgun_shot.o(.text+0x490): >>> first defined here >>> collect2: ld returned 1 exit status >>> make[1]: *** [server_i486.so] Error 1 >>> >>> >>> -- >>> Best regards, >>> hp >>> mailto:[EMAIL PROTECTED] >>> >>> >>> >>> _______________________________________________ >>> To unsubscribe, edit your list preferences, or view >>> the list archives, please visit: >>> >> http://list.valvesoftware.com/mailman/listinfo/hlcoders >>> >>> >> __________________________________________________ >> Do You Yahoo!? >> Tired of spam? Yahoo! Mail has the best spam protection around >> http://mail.yahoo.com >> _______________________________________________ >> To unsubscribe, edit your list preferences, or view the list archives, >> please visit: >> http://list.valvesoftware.com/mailman/listinfo/hlcoders > -- > Best regards, > hp mailto:[EMAIL PROTECTED] > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, please > visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders -- Best regards, hp mailto:[EMAIL PROTECTED] _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

