Re: [hlcoders] linux compiling hl2mp problems
theres more info about pragma once here http://www.quakesrc.org/forums/viewtopic.php?t=4531highlight=pragma hp 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 :/ ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders
[hlcoders] linux compiling hl2mp problems
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 ServerClassInitDT_TEHL2MPFireBullets::ignored(DT_TEHL2MPFireBullets::ignored*)': : multiple definition of `int ServerClassInitDT_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
Re: [hlcoders] linux compiling hl2mp problems
hp wrote: Hello, I have problem with compiling hl2mp under linux: obj/server/dlls/hl2mp_dll/te_hl2mp_shotgun_shot.o(.text+0xf0): In function `CTEHL2MPFireBullets::YouForgotToImplementOrDeclareServerClass()': : multiple definition of `CTEHL2MPFireBullets::YouForgotToImplementOrDeclareServerClass()' Heh-heh. YouForgotToImplementOrDeclareServerClass(), wow. Awesome name for a function. I like that. It's cute. GG Valve. -- Jeffrey botman Broome ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders
Re: [hlcoders] linux compiling hl2mp problems
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 ServerClassInitDT_TEHL2MPFireBullets::ignored(DT_TEHL2MPFireBullets::ignored*)': : multiple definition of `int ServerClassInitDT_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
Re: [hlcoders] linux compiling hl2mp problems
Yes, I love that one too, was the bane of my early attempts to make weapons in source ;) Nice to have your errors say HERES WHAT YOU DID WRONG YOU BAFOON! -- Draco ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders
Re[2]: [hlcoders] linux compiling hl2mp problems
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 ServerClassInitDT_TEHL2MPFireBullets::ignored(DT_TEHL2MPFireBullets::ignored*)': : multiple definition of `int ServerClassInitDT_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:
Re: [hlcoders] linux compiling hl2mp problems
hp 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 :/ You want to have a .h file wrapper instead of the #pragma once. For example if you have this in the SomeThing.h file... #ifdef _WIN32 #pragma once #endif code code code more code code code ...you would replace it with... #ifndef SOMETHING_H #define SOMETHING_H code code code more code code code #endif // SOMETHING_H ...which will create a 'C' style wrapper for the .h file. Even if this .h file gets included multiple times in a .cpp file, the stuff inside the #ifndef and #endif will only get executed ONCE. Yes, you have to change this in EACH .h file. :( -- Jeffrey botman Broome ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders
Re[3]: [hlcoders] linux compiling hl2mp problems
Hello hp, #ifndef TE_HL2MP_SHOTGUN_SHOT_H #define TE_HL2MP_SHOTGUN_SHOT_H #ifdef _WIN32 delete? #pragma oncedelete? #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 ServerClassInitDT_TEHL2MPFireBullets::ignored(DT_TEHL2MPFireBullets::ignored*)': : multiple definition of `int ServerClassInitDT_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
Re: [hlcoders] linux compiling hl2mp problems
hp wrote: Hello hp, #ifndef TE_HL2MP_SHOTGUN_SHOT_H #define TE_HL2MP_SHOTGUN_SHOT_H #ifdef _WIN32 delete? #pragma oncedelete? #endif delete? #endif // TE_HL2MP_SHOTGUN_SHOT_H ifndef define and endif is there already :/ Yes, delete them. You don't need the #ifdef _WIN32, #pragma once and #endif after you added the other stuff. -- Jeffrey botman Broome ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders
Re[2]: [hlcoders] linux compiling hl2mp problems
Hello Jeffrey, yes but the question is pragma once is ignored on linux then only SOMETHING_H etc is used but in te_hl2mp_shotgun_shot.h it is there #ifndef TE_HL2MP_SHOTGUN_SHOT_H #define TE_HL2MP_SHOTGUN_SHOT_H #ifdef _WIN32 #pragma once #endif void TE_HL2MPFireBullets( int iPlayerIndex, const Vector vOrigin, const Vector vDir, int iAmmoID, int iSeed, int iShots, float flSpread, bool bDoTracers, bool bDoImpacts ); #endif // TE_HL2MP_SHOTGUN_SHOT_H since it has problem with hl2mp_dll/te_hl2mp_shotgun_shot.o then i dont understand why - everything looks ok Friday, May 27, 2005, 4:13:19 PM, you wrote: hp 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 :/ You want to have a .h file wrapper instead of the #pragma once. For example if you have this in the SomeThing.h file... #ifdef _WIN32 #pragma once #endif code code code more code code code ..you would replace it with... #ifndef SOMETHING_H #define SOMETHING_H code code code more code code code #endif // SOMETHING_H ..which will create a 'C' style wrapper for the .h file. Even if this h file gets included multiple times in a .cpp file, the stuff inside the #ifndef and #endif will only get executed ONCE. Yes, you have to change this in EACH .h file. :( -- Jeffrey botman Broome ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders -- Best regards, hpmailto:[EMAIL PROTECTED] ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders
Re: [hlcoders] linux compiling hl2mp problems
Hello hp, ok i fixed it it was duplicated te_hl2mp_shotgun_shot.cpp in project file - someone should be spanked for this :P thx for help Friday, May 27, 2005, 3:06:08 PM, you 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 ServerClassInitDT_TEHL2MPFireBullets::ignored(DT_TEHL2MPFireBullets::ignored*)': : multiple definition of `int ServerClassInitDT_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 -- Best regards, hpmailto:[EMAIL PROTECTED] ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders
Re: [hlcoders] linux compiling hl2mp problems
someone should be spanked for this :P lol r00t 3:16 CQC Gaming www.cqc-gaming.com ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders