View Single Post
  #3  
Old 08-16-2011, 03:15 AM
takatok
Fire Beetle
 
Join Date: Apr 2008
Location: USA
Posts: 20
Default

Thanks for the help.

If anyone else encounters these problems -- Switching to 5.12 and changing the pragma worked wonderfully. Changing the files to link to zdll also worked with one slight problem.

I'm currently using mysql server 5.1.58 and zlib version 1.2.3

On both zone and world I get the following linking problems:
3>mysqlclient.lib(inflate.obj) : error LNK2005: _inflateInit2_ already defined in zlib.lib(zlib1.dll)
3>mysqlclient.lib(inflate.obj) : error LNK2005: _inflate already defined in zlib.lib(zlib1.dll)
3>mysqlclient.lib(inflate.obj) : error LNK2005: _inflateEnd already defined in zlib.lib(zlib1.dll)


I'm guessing either both libraries do the same function or somehow they picked the same names for diffrent functions. Obviously a version problem between to the two. If anyone can tell me what versions of mysql and zlib they are using I might be able to hunt down older copies of one or the other. Links to either would be even more excellent.

Down to this final error to get things working

UPDATE ---------- UPDATE
Well after poking around in the mysql dirs. I noticed it used zlib itself. After seeing a million dependency problems fixed by switching order around, I flipped the lib directories in VC++. Worked like a charm. SO MAKE SURE MYSQL IS ABOVE ZLIB in the VC++ directories if you encounter this problem.

Tony

PS thanks again for the help lerxst
Reply With Quote