CJ 16.2.0 unzip library conflict. |
Post Reply |
Author | |
jshan
Groupie Joined: 07 December 2007 Status: Offline Points: 63 |
Post Options
Thanks(0)
Posted: 24 June 2013 at 10:54am |
Hi.
i got ... CIL library *(* CIL module *) : error LNK2005: "public: unsigned long __thiscall TUnzip::Close(void)" (?Close@TUnzip@@QAEKXZ) already defined in ToolkitPro1620vc110SU.lib(unzip.obj) 1>* CIL library *(* CIL module *) : error LNK2005: "unsigned long __cdecl CloseZipU(struct HZIP__ *)" (?CloseZipU@@YAKPAUHZIP__@@@Z) already defined in ToolkitPro1620vc110SU.lib(unzip.obj) 1>* CIL library *(* CIL module *) : error LNK2005: "void __cdecl EnsureDirectory(wchar_t const *,wchar_t const *)" (?EnsureDirectory@@YAXPB_W0@Z) already defined in ToolkitPro1620vc110SU.lib(unzip.obj) 1>* CIL library *(* CIL module *) : error LNK2005: "public: unsigned long __thiscall TUnzip::Find(wchar_t const *,bool,int *,struct ZIPENTRY *)" (?Find@TUnzip@@QAEKPB_W_NPAHPAUZIPENTRY@@@Z) already defined in ToolkitPro1620vc110SU.lib(unzip.obj) 1>* CIL library *(* CIL module *) : error LNK2005: "public: unsigned long __thiscall TUnzip::Get(int,struct ZIPENTRY *)" (?Get@TUnzip@@QAEKHPAUZIPENTRY@@@Z) already defined in ToolkitPro1620vc110SU.lib(unzip.obj) 1>* CIL library *(* CIL module *) : error LNK2005: "bool __cdecl IsZipHandleU(struct HZIP__ *)" (?IsZipHandleU@@YA_NPAUHZIP__@@@Z) already defined in ToolkitPro1620vc110SU.lib(unzip.obj) 1>* CIL library *(* CIL module *) : error LNK2005: "public: unsigned long __thiscall TUnzip::Open(void *,unsigned int,unsigned long)" (?Open@TUnzip@@QAEKPAXIK@Z) already defined in ToolkitPro1620vc110SU.lib(unzip.obj) 1>* CIL library *(* CIL module *) : error LNK2005: "public: unsigned long __thiscall TUnzip::Unzip(int,void *,unsigned int,unsigned long)" (?Unzip@TUnzip@@QAEKHPAXIK@Z) already defined in ToolkitPro1620vc110SU.lib(unzip.obj) 1>* CIL library *(* CIL module *) : error LNK2005: "int __cdecl lufclose(struct LUFILE *)" (?lufclose@@YAHPAULUFILE@@@Z) already defined in ToolkitPro1620vc110SU.lib(unzip.obj) 1>* CIL library *(* CIL module *) : error LNK2005: "int __cdecl luferror(struct LUFILE *)" (?luferror@@YAHPAULUFILE@@@Z) already defined in ToolkitPro1620vc110SU.lib(unzip.obj) 1>* CIL library *(* CIL module *) : error LNK2005: "struct LUFILE * __cdecl lufopen(void *,unsigned int,unsigned long,unsigned long *)" (?lufopen@@YAPAULUFILE@@PAXIKPAK@Z) already defined in ToolkitPro1620vc110SU.lib(unzip.obj) 1>* CIL library *(* CIL module *) : error LNK2005: "unsigned int __cdecl lufread(void *,unsigned int,unsigned int,struct LUFILE *)" (?lufread@@YAIPAXIIPAULUFILE@@@Z) already defined in ToolkitPro1620vc110SU.lib(unzip.obj) 1>* CIL library *(* CIL module *) : error LNK2005: "int __cdecl lufseek(struct LUFILE *,long,int)" (?lufseek@@YAHPAULUFILE@@JH@Z) already defined in ToolkitPro1620vc110SU.lib(unzip.obj) 1>* CIL library *(* CIL module *) : error LNK2005: "long __cdecl luftell(struct LUFILE *)" (?luftell@@YAJPAULUFILE@@@Z) already defined in ToolkitPro1620vc110SU.lib(unzip.obj) 1>* CIL library *(* CIL module *) : error LNK2005: "int __cdecl strcmpcasenosensitive_internal(char const *,char const *)" (?strcmpcasenosensitive_internal@@YAHPBD0@Z) already defined in ToolkitPro1620vc110SU.lib(unzip.obj) 1>* CIL library *(* CIL module *) : error LNK2005: "unsigned long __cdecl ucrc32(unsigned long,unsigned char const *,unsigned int)" (?ucrc32@@YAKKPBEI@Z) already defined in ToolkitPro1620vc110SU.lib(unzip.obj) 1>* CIL library *(* CIL module *) : error LNK2005: "int __cdecl unzClose(struct unz_s *)" (?unzClose@@YAHPAUunz_s@@@Z) already defined in ToolkitPro1620vc110SU.lib(unzip.obj) . . . . it says unzip stuff already used in graphics library. so, i compiled my project with following define. #define _XTP_EXCLUDE_GRAPHICLIBRARY but no differences at all. why it makes conflict and how to solve this ? cj 15.2.1 is fine with it. |
|
: xtp 16.2.0(Unicode static lib)
: windows 7 Pro Kor sp1(64bit) : vs 2012 update 2 MFC |
|
BadJerry
Newbie Joined: 22 July 2005 Location: United Kingdom Status: Offline Points: 8 |
Post Options
Thanks(0)
|
I have the same problem - have you found solution?
|
|
cpede
Senior Member Joined: 13 August 2004 Location: Denmark Status: Offline Points: 668 |
Post Options
Thanks(0)
|
OK, this is old, but anyway.
I'm using a library called XZip (and XUnZip), and this also generated "already defined" errors. What I did was packing my cpp and h files xzip.cpp/h and xunzip.cpp/h in a namespace like this: namespace myownzip { ... } and calling using namespace myownzip; in the cpp file where I use the methods. Maybe CodeJock should do something similar, so that we avoid doing this. -cpede
|
|
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64) Language: Visual Studio 2017 (C++) |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |