Versetti Posted January 1, 2004 Report Posted January 1, 2004 I'm trying too link the header file lnikedlist01.h to the Merv Bot plugin. But I have no clue which file too include it in since I need it in both the spawn.cpp and command.cpp. The linkedlist01.h only has my linked list and Database commands. If you know which one plz tell me. --SSG Owner--SSG GT5000 Owner http://gt5000.no-ip.com:81/lighting2.gif
50% Packetloss Posted January 2, 2004 Report Posted January 2, 2004 spawn.h at the top #include "blah.h"
★ D1st0rt Posted January 2, 2004 Report Posted January 2, 2004 you may run into issues with it being (or not being) static. If that's the case, I would just copy that stuff into your spawn.h _UU___UU__SSSSS____AAA____UU___UU__SSSSS____AAA____UU___UU_SS_______AAAAA___UU___UU_SS_______AAAAA___UU___UU__SSSSS__AA___AA__UU___UU__SSSSS__AA___AA__UU___UU______SS_AAAAAAA__UU___UU______SS_AAAAAAA___UUUUU___SSSSS_AA____AA___UUUUU___SSSSS_AA____AAJ.C. Dento> prime example of why america will never be a world super power.Moscato> d1 is mad he will never have a job outside subspaceI can't see this because I turned signatures off. ps VT
Versetti Posted January 2, 2004 Author Report Posted January 2, 2004 I did that and it showed this error:--------------------Configuration: default - Win32 Debug--------------------Compiling...command.cppspawn.cppLinking...spawn.obj : error LNK2005: "int Uid" (?Uid@@3HA) already defined in command.objspawn.obj : error LNK2005: "class savep1 * FirstV" (?FirstV@@3PAVsavep1@@A) already defined in command.objspawn.obj : error LNK2005: "class savep1 * LastPtrV" (?LastPtrV@@3PAVsavep1@@A) already defined in command.objspawn.obj : error LNK2005: "class savep1 * ListPtrV" (?ListPtrV@@3PAVsavep1@@A) already defined in command.objspawn.obj : error LNK2005: "bool __cdecl MatchString1(char const *,char const *,int)" (?MatchString1@@YA_NPBD0H@Z) already defined in command.objspawn.obj : error LNK2005: "bool __cdecl SearchNameV(char * const)" (?SearchNameV@@YA_NQAD@Z) already defined in command.objspawn.obj : error LNK2005: "void __cdecl savepAdd(char * const,long,long,int)" (?savepAdd@@YAXQADJJH@Z) already defined in command.objspawn.obj : error LNK2005: "void __cdecl databasesave(void)" (?databasesave@@YAXXZ) already defined in command.objspawn.obj : error LNK2005: "void __cdecl databaseread(void)" (?databaseread@@YAXXZ) already defined in command.objspawn.obj : error LNK2005: "int Uid" (?Uid@@3HA) already defined in command.objspawn.obj : error LNK2005: "class savep1 * FirstV" (?FirstV@@3PAVsavep1@@A) already defined in command.objspawn.obj : error LNK2005: "class savep1 * LastPtrV" (?LastPtrV@@3PAVsavep1@@A) already defined in command.objspawn.obj : error LNK2005: "class savep1 * ListPtrV" (?ListPtrV@@3PAVsavep1@@A) already defined in command.objspawn.obj : warning LNK4006: "bool __cdecl MatchString1(char const *,char const *,int)" (?MatchString1@@YA_NPBD0H@Z) already defined in command.obj; second definition ignoredspawn.obj : warning LNK4006: "bool __cdecl SearchNameV(char * const)" (?SearchNameV@@YA_NQAD@Z) already defined in command.obj; second definition ignoredspawn.obj : warning LNK4006: "void __cdecl savepAdd(char * const,long,long,int)" (?savepAdd@@YAXQADJJH@Z) already defined in command.obj; second definition ignoredspawn.obj : warning LNK4006: "void __cdecl databasesave(void)" (?databasesave@@YAXXZ) already defined in command.obj; second definition ignoredspawn.obj : warning LNK4006: "void __cdecl databaseread(void)" (?databaseread@@YAXXZ) already defined in command.obj; second definition ignoredspawn.obj : warning LNK4006: "int Uid" (?Uid@@3HA) already defined in command.obj; second definition ignoredspawn.obj : warning LNK4006: "class savep1 * FirstV" (?FirstV@@3PAVsavep1@@A) already defined in command.obj; second definition ignoredspawn.obj : warning LNK4006: "class savep1 * LastPtrV" (?LastPtrV@@3PAVsavep1@@A) already defined in command.obj; second definition ignoredspawn.obj : warning LNK4006: "class savep1 * ListPtrV" (?ListPtrV@@3PAVsavep1@@A) already defined in command.obj; second definition ignored Creating library Debug/savep.lib and object Debug/savep.expDebug\savep.dll : fatal error LNK1169: one or more multiply defined symbols foundError executing link.exe. savep.dll - 14 error(s), 9 warning(s) --SSG Owner--SSG GT5000 Owner http://gt5000.no-ip.com:81/lighting2.gif
★ D1st0rt Posted January 2, 2004 Report Posted January 2, 2004 well then you can unlink the other header and use /FORCE:Multiple but I would only do that AT ALL if you had trouble with things being static or not static in the end, its probably just better to fix it some other way, but this is quick _UU___UU__SSSSS____AAA____UU___UU__SSSSS____AAA____UU___UU_SS_______AAAAA___UU___UU_SS_______AAAAA___UU___UU__SSSSS__AA___AA__UU___UU__SSSSS__AA___AA__UU___UU______SS_AAAAAAA__UU___UU______SS_AAAAAAA___UUUUU___SSSSS_AA____AA___UUUUU___SSSSS_AA____AAJ.C. Dento> prime example of why america will never be a world super power.Moscato> d1 is mad he will never have a job outside subspaceI can't see this because I turned signatures off. ps VT
Recommended Posts