How to avoid “error LNK2005:” (already defined stdlib functions) when compiling libpng with Microsoft Visual Studio '08?
(Why I am trying to do this: I have had no luck in using the pre-built binaries for libpng on Windows (despite many hours of trial and error), and therefore am now trying to compile it myself. I found this helpful blog post concerning this, complete with a Microsoft Visual Studio 2008 project file, but unfortunately have still not been able to use it.) It successfully compiles when linking to the zlib binary found here , but when attempting to link it to a test file I receive the following: C:\Documents and Settings\Administrator\My Documents>cl "C:\Documents and Settin gs\Administrator\My