[libpng15] Warn about the incorrect runtime library setting for VS2010

debug DLL builds.
This commit is contained in:
John Bowler
2012-09-29 17:45:19 -05:00
committed by Glenn Randers-Pehrson
parent f3862ea1be
commit 1badb47dc3
5 changed files with 38 additions and 29 deletions

23
projects/vstudio/WARNING Normal file
View File

@@ -0,0 +1,23 @@
WARNING
=======
Libpng 1.5 erroneously uses /MD when building debug DLL versions of libpng.
It should use /MDd - you can change this under properties\C/C++\Code
Generation\Runtime Library if you need to use the debug runtime for debug
builds. This will be changed in libpng 1.6 but is currently retained for
compatibility with older libpng 1.5 releases.
The runtime library settings for each build are as follows:
Release Debug
DLL /MD /MD
Library /MT /MTd
The Visual Studio 2010 defaults for a Win32 DLL or Static Library project are
as follows:
Release Debug
DLL /MD /MDd
Static Library /MD /MDd
Notice that by default static library builds use the DLL runtime, not the
static library runtime.

View File

@@ -1,7 +1,7 @@
VisualStudio instructions
libpng version 1.5.14beta01 - September 27, 2012
libpng version 1.5.14beta01 - September 29, 2012
Copyright (c) 1998-2010 Glenn Randers-Pehrson
@@ -13,6 +13,14 @@ This directory contains support for building libpng under MicroSoft
VisualStudio 2010. It may also work under later versions of VisualStudio.
You should be familiar with VisualStudio before using this directory.
WARNING
=======
Libpng 1.5 erroneously uses /MD when building debug DLL versions of libpng.
It should use /MDd - you can change this under properties\C/C++\Code
Generation\Runtime Library if you need to use the debug runtime for debug
builds. This will be changed in libpng 1.6 but is currently retained for
compatibility with older libpng 1.5 releases.
Initial preparations
====================
You must enter some information in zlib.props before attempting to build

View File

@@ -2,7 +2,7 @@
<!--
* zlib.props - location of zlib source
*
* libpng version 1.5.14beta01 - September 27, 2012
* libpng version 1.5.14beta01 - September 29, 2012
*
* Copyright (c) 1998-2011 Glenn Randers-Pehrson
*