Linker Errors

We have a Visual Studio 2010 application that is written in C++/MFC. It is a Unicode application. When trying to integrate the static LimeLM libary.(TurboActivate-MT.lib) .we get the following linker errors.

1>curllib.lib(zutil.obj) : error LNK2005: _z_errmsg already defined in ToolkitPro1521vc100SU.lib(zutil.obj)1>curllib.lib(zutil.obj) : error LNK2005: _zcalloc already defined in ToolkitPro1521vc100SU.lib(zutil.obj)1>curllib.lib(zutil.obj) : error LNK2005: _zcfree already defined in ToolkitPro1521vc100SU.lib(zutil.obj)

Yes we are using the CodeJock toolkit in the application as well. Is there any way to get rid of these errors?

This error is a conflict between our ZLIB and their ZLIB. Do they split out their ZLIB in a separate .lib file? If so, exclude their zlib file.

Does that make sense?

I'm having this exact problem now. What do I do? I have two sets of precompiled libraries, neither of which I can modify. Neither splits out the Zlib file.

We don't currently split out zlib (and we don't have plans to for the upcoming releasing). You have a couple of choices:

  1. Use the dynamic library version of TurboActivate.
  2. Use the dynamic library version of that library.
  3. Recompile the libcurl included with TurboActivate and use that instead of our optimized version. You'll have to build it with support for gzip, HTTP, HTTPS.