Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - XTP static lib conflicts with libz.lib
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

XTP static lib conflicts with libz.lib

 Post Reply Post Reply
Author
Message
jhuckins View Drop Down
Newbie
Newbie


Joined: 17 September 2007
Location: United States
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote jhuckins Quote  Post ReplyReply Direct Link To This Post Topic: XTP static lib conflicts with libz.lib
    Posted: 18 September 2007 at 6:20pm
There is a conflict with ToolkitPro1120vc80DSD.lib and libz.lib
 
How do I fix this problem?
 
Regards,
Jeff
 
1>ToolkitPro1120vc80DSD.lib(deflate.obj) : error LNK2005: _deflateInit2_ already defined in libz.lib(zlib.dll)

1>ToolkitPro1120vc80DSD.lib(deflate.obj) : error LNK2005: _deflate already defined in libz.lib(zlib.dll)

1>ToolkitPro1120vc80DSD.lib(deflate.obj) : error LNK2005: _deflateEnd already defined in libz.lib(zlib.dll)

1>ToolkitPro1120vc80DSD.lib(inflate.obj) : error LNK2005: _inflateInit2_ already defined in libz.lib(zlib.dll)

1>ToolkitPro1120vc80DSD.lib(inflate.obj) : error LNK2005: _inflate already defined in libz.lib(zlib.dll)

1>ToolkitPro1120vc80DSD.lib(inflate.obj) : error LNK2005: _inflateEnd already defined in libz.lib(zlib.dll)

Regards,
Jeff
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 19 September 2007 at 4:51am
Hi,
 
Toolkit already contains zlib. try use it instead additional  library.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
jhuckins View Drop Down
Newbie
Newbie


Joined: 17 September 2007
Location: United States
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote jhuckins Quote  Post ReplyReply Direct Link To This Post Posted: 19 September 2007 at 10:32am
Oleg,
I can't use it from XTP because it is called from a C code module, not a C++ code module.
Regards,
Jeff
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 19 September 2007 at 1:48pm
Hi,
ok, try to copy files from our Source\GraphicLibrary\zlib to your zlib folder. If files will be exactly same, think linker will handle it corect. Don't forget rebuild you zlib library after.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.125 seconds.