Jump to content
SubSpace Forum Network

Recommended Posts

Posted
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.
Posted

I did that and it showed this error:

--------------------Configuration: default - Win32 Debug--------------------

Compiling...

command.cpp

spawn.cpp

Linking...

spawn.obj : error LNK2005: "int Uid" (?Uid@@3HA) already defined in command.obj

spawn.obj : error LNK2005: "class savep1 * FirstV" (?FirstV@@3PAVsavep1@@A) already defined in command.obj

spawn.obj : error LNK2005: "class savep1 * LastPtrV" (?LastPtrV@@3PAVsavep1@@A) already defined in command.obj

spawn.obj : error LNK2005: "class savep1 * ListPtrV" (?ListPtrV@@3PAVsavep1@@A) already defined in command.obj

spawn.obj : error LNK2005: "bool __cdecl MatchString1(char const *,char const *,int)" (?MatchString1@@YA_NPBD0H@Z) already defined in command.obj

spawn.obj : error LNK2005: "bool __cdecl SearchNameV(char * const)" (?SearchNameV@@YA_NQAD@Z) already defined in command.obj

spawn.obj : error LNK2005: "void __cdecl savepAdd(char * const,long,long,int)" (?savepAdd@@YAXQADJJH@Z) already defined in command.obj

spawn.obj : error LNK2005: "void __cdecl databasesave(void)" (?databasesave@@YAXXZ) already defined in command.obj

spawn.obj : error LNK2005: "void __cdecl databaseread(void)" (?databaseread@@YAXXZ) already defined in command.obj

spawn.obj : error LNK2005: "int Uid" (?Uid@@3HA) already defined in command.obj

spawn.obj : error LNK2005: "class savep1 * FirstV" (?FirstV@@3PAVsavep1@@A) already defined in command.obj

spawn.obj : error LNK2005: "class savep1 * LastPtrV" (?LastPtrV@@3PAVsavep1@@A) already defined in command.obj

spawn.obj : error LNK2005: "class savep1 * ListPtrV" (?ListPtrV@@3PAVsavep1@@A) already defined in command.obj

spawn.obj : warning LNK4006: "bool __cdecl MatchString1(char const *,char const *,int)" (?MatchString1@@YA_NPBD0H@Z) already defined in command.obj; second definition ignored

spawn.obj : warning LNK4006: "bool __cdecl SearchNameV(char * const)" (?SearchNameV@@YA_NQAD@Z) already defined in command.obj; second definition ignored

spawn.obj : warning LNK4006: "void __cdecl savepAdd(char * const,long,long,int)" (?savepAdd@@YAXQADJJH@Z) already defined in command.obj; second definition ignored

spawn.obj : warning LNK4006: "void __cdecl databasesave(void)" (?databasesave@@YAXXZ) already defined in command.obj; second definition ignored

spawn.obj : warning LNK4006: "void __cdecl databaseread(void)" (?databaseread@@YAXXZ) already defined in command.obj; second definition ignored

spawn.obj : warning LNK4006: "int Uid" (?Uid@@3HA) already defined in command.obj; second definition ignored

spawn.obj : warning LNK4006: "class savep1 * FirstV" (?FirstV@@3PAVsavep1@@A) already defined in command.obj; second definition ignored

spawn.obj : warning LNK4006: "class savep1 * LastPtrV" (?LastPtrV@@3PAVsavep1@@A) already defined in command.obj; second definition ignored

spawn.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.exp

Debug\savep.dll : fatal error LNK1169: one or more multiply defined symbols found

Error executing link.exe.

 

savep.dll - 14 error(s), 9 warning(s)

Posted

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

Guest
This topic is now closed to further replies.
×
×
  • Create New...