Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Problems building with 10.3.1
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problems building with 10.3.1

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

Joined: 13 July 2006
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote IRMark Quote  Post ReplyReply Direct Link To This Post Topic: Problems building with 10.3.1
    Posted: 19 September 2006 at 2:20pm
Hi Everyone,

I've recently updated to version 10.3.1 of the Xtreme ToolkitPro and I am having problems building our project now.  I'm getting the following errors:


Linking...
ToolkitPro1031vc60SD.lib(deflate.obj) : error LNK2005: _deflateSetHeader already defined in ISLibMSD30.lib(deflate.obj)
ToolkitPro1031vc60SD.lib(deflate.obj) : error LNK2005: _deflateTune already defined in ISLibMSD30.lib(deflate.obj)
ToolkitPro1031vc60SD.lib(deflate.obj) : error LNK2005: _deflate already defined in dzsll32.lib(Deflate.obj)
ToolkitPro1031vc60SD.lib(inflate.obj) : error LNK2005: _inflatePrime already defined in ISLibMSD30.lib(inflate.obj)
ToolkitPro1031vc60SD.lib(inflate.obj) : error LNK2005: _inflate already defined in duzsll32.lib(Inflate.obj)
ToolkitPro1031vc60SD.lib(inflate.obj) : error LNK2005: _inflateGetHeader already defined in ISLibMSD30.lib(inflate.obj)
ToolkitPro1031vc60SD.lib(adler32.obj) : error LNK2005: _adler32_combine already defined in ISLibMSD30.lib(adler32.obj)
ToolkitPro1031vc60SD.lib(crc32.obj) : error LNK2005: _crc32_combine already defined in ISLibMSD30.lib(crc32.obj)
LINK : warning LNK4098: defaultlib "LIBCMT" conflicts with use of other libs; use /NODEFAULTLIB:library
Debug/VPExpress.exe : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.


I'm thinking that this may have to do with the inclusion of the PNG support in 10.3?

Has anyone else encountered this?  Or does anyone else know what I should do?

edit: Whoops I forgot to mention that I have been able to compile without any problems using 10.2 and previous versions!

Thanks,

Mark.
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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 2006 at 3:19pm
Hello, yes in 10.3/10.3.1 we added png support and seems it conflicted with your ISLibMSD30.lib.
 
please open project in IDE and remove in solution explorer GraphicLibrary subfolder, comment #define _XTP_INCLUDE_GRAPHICLIBRARY in Common/XTPVersion.h and rebuild library.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
IRMark View Drop Down
Groupie
Groupie
Avatar

Joined: 13 July 2006
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote IRMark Quote  Post ReplyReply Direct Link To This Post Posted: 19 September 2006 at 3:26pm

Hi Oleg,

Thanks for the quick reply I will definitely try that and see if I can get it working!  I'll report back with what I find.

Also is there any work around available for us if we wanted to use ISLibMSD30.lib and XXtreme ToolkitPro with PNG support?  Right now PNG support isn't that big of a deal for us but I could see if wanting to implement it in the future.

Perhaps those functions could be wrapped in a namespace or something like that to protect them with conflicting with other libraries?

Thanks again for getting back to me so quickly.



Back to Top
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post Posted: 19 September 2006 at 4:14pm
Are you linking the XTP statically?
Codejock support
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 20 September 2006 at 1:06am
Hello,
 
I think if totally same version of zlib will be used in toolkitpro and ISLibMSD30 libraries, compiller will not complain. If you can modify ISLibMSD30  library try to copy zlib implementation from toolkitpro to your ISLibMSD30  sources.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 20 September 2006 at 1:09am
And another easy solution -
in GraphicLibrary\zlib\zconf.h in beginning of file add
 
#define Z_PREFIX
 
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
IRMark View Drop Down
Groupie
Groupie
Avatar

Joined: 13 July 2006
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote IRMark Quote  Post ReplyReply Direct Link To This Post Posted: 20 September 2006 at 9:55am
Ahh Oleg thanks for the tips, I think that they both will work just fine!

Also, in case you were still wondering we link the Xtreme Toolkit statically.
Back to Top
esc67 View Drop Down
Newbie
Newbie


Joined: 09 June 2005
Status: Offline
Points: 29
Post Options Post Options   Thanks (0) Thanks(0)   Quote esc67 Quote  Post ReplyReply Direct Link To This Post Posted: 22 November 2006 at 12:44am
Originally posted by oleg oleg wrote:

 
I think if totally same version of zlib will be used in toolkitpro and ISLibMSD30 libraries, compiller will not complain.
 
This doesn't work because the linker says "deflate_copyright" is defined twice.  I have this problem because other libraries I use include "zlib.lib".
 
Why don't you do this:
 
#pragma comment(lib, "zlib.lib")
 
Instead of including the sources explicitely? That would eliminate redundant definitions, and it would ensure that all code uses the same version of the library.
 
-Erik
 
Back to Top
esc67 View Drop Down
Newbie
Newbie


Joined: 09 June 2005
Status: Offline
Points: 29
Post Options Post Options   Thanks (0) Thanks(0)   Quote esc67 Quote  Post ReplyReply Direct Link To This Post Posted: 22 November 2006 at 11:54am

Here's a workaround that worked for me:

Comment out the deflate_copyright declaration in deflate.c for *static* builds. Then put the definition back in for *dll* builds.
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.063 seconds.