patrickh 2006/07/12 15:52:07 PDT
Modified files: (Branch: releng-0-6)
cppdom config.h
Log:
Implemented automatic linking when building with Visual C++. Unlike other
projects' use of automatic linking, this feature is optional. It is
enabled by defining CPPDOM_AUTO_LINK and/or CPPDOM_DYN_LINK. If
CPPDOM_AUTO_LINK is defined without CPPDOM_DYN_LINK, then the static
version of the debug or release library is used for linking. Otherwise, the
dynamic version is used.
The reason that I made this optional is largely for backwards compatibility
with existing uses of CppDOM. If automatic linking were not optional, a
user-level build that was not updated to define CPPDOM_DYN_LINK would end
up linking against both the static and dynamic library, thus resulting in
multiply defined symbols at link time. Removing the test to determine if
CPPDOM_AUTO_LINK is defined would result in this library behaving the way
that all others that I have seen that use automatic linking.
Revision Changes Path
1.11.4.1 +26 -4 cppdom/cppdom/config.h
http://xml-cppdom.cvs.sourceforge.net/xml-cppdom/cppdom/cppdom/config.h.diff?r1=1.11&r2=1.11.4.1&diff_format=h
|