Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CJ 16.2.0  unzip library conflict.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CJ 16.2.0 unzip library conflict.

 Post Reply Post Reply
Author
Message
jshan View Drop Down
Groupie
Groupie
Avatar

Joined: 07 December 2007
Status: Offline
Points: 63
Post Options Post Options   Thanks (0) Thanks(0)   Quote jshan Quote  Post ReplyReply Direct Link To This Post Topic: CJ 16.2.0 unzip library conflict.
    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

Back to Top
BadJerry View Drop Down
Newbie
Newbie


Joined: 22 July 2005
Location: United Kingdom
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote BadJerry Quote  Post ReplyReply Direct Link To This Post Posted: 24 July 2013 at 9:11am
I have the same problem - have you found  solution?
Back to Top
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 668
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post 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++)
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.223 seconds.