Print Page | Close Window

CJ 16.2.0 unzip library conflict.

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=21741
Printed Date: 24 December 2024 at 12:20pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CJ 16.2.0 unzip library conflict.
Posted By: jshan
Subject: CJ 16.2.0 unzip library conflict.
Date 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




Replies:
Posted By: BadJerry
Date Posted: 24 July 2013 at 9:11am
I have the same problem - have you found  solution?


Posted By: cpede
Date Posted: 05 February 2016 at 4:36am
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++)



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net