zlib 1.2.5 – fatal error LNK1120: X unresolved externals

When trying to link program to zlib 1.2.5 static library (zlib.lib), I got the following error:
fatal error LNK1120: X unresolved externals ...

Version 1.1.3 worked without any problems. Without going into details, here is what I did – using DUMPBIN.EXE I figured out that I am using __cdecl (/Gd) Calling convention, but zlib somehow overrides it with __stdcall (/Gz). Two hours letter I found that Visual Studio 2010 solution (zlib-1.2.5\contrib\vstudio\vc10\zlibvc.sln) has definition ZLIB_WINAPI.

Removing ZLIB_WINAPI solved my problem. To remove, it go to:
zlibstat Properties – Configuration Properties – C/C++ – Preprocessor – Preprocessor Definitions

Alternatively, you can comment out ifdef block – #ifdef ZLIB_WINAPI.

IPv6, literals and legacy software

IPv4 address exhaustion is slowly going into final phase.

To use IPv6 addresses in legacy software, some mechanism must be in place to not confuse programs with colons (:) in the addresses. For Windows this is IPv6 literals.

We have created IPv6 to literal online converting tool. It is a free tool to convert IPv6 to literal address ending with .ipv6-literal.net

For example, these two lines behave identically:
ping 0--1.ipv6-literal.net
ping ::1

Also, zone ID is supported and shortest / longest IPv6 address form is calculated.

IPv6 literal screenshot

For more information and to test this tool in action, click here!

Use form below, if you have suggestions or comments.

UPDATE Apr 26, 2011. As Takyoji suggested, just added support for Reverse DNS lookup. Now last row is calculated for use with the special domain ip6.arpa.

September 2010, links

Ever wondered how Microsoft sorts through nearly 200,000 e-mailed reports of security vulnerabilities each year.

CSS 3.0 Maker.

CSS3 Playground by Mike Plate.

Programming Things I Wish I Knew Earlier.

evercookie is a JavaScript API available that produces extremely persistent cookies in a browser.

StackOverflow – What is the best comment in source code you have ever encountered?

Microsoft will retire Visual Studio Installer – read here.

The Facebook Data Center FAQ.