On 8/25/2011 9:39 AM, Quincey Koziol wrote:
Hi Matt,
On Aug 19, 2011, at 9:42 AM, Matthew Chambers wrote:
Sorry I wasn't clear. That's 1.9mb of just HDF5. The total .exe size went from
3.9 to 5.8mb.
Preprocessor defines could disable parts of the code that perhaps aren't
necessary for general functionality.
What platform are you building on? Are you using a debug or production
build of HDF5?
The 1.9mb figure comes from a Windows 32-bit release build using MSVC 2008 SP1. My rsp file for
building the H5 code looks like:
"H5.c" -Fo"H5.obj"
-TC /O2 /Ob2 /W0 /GR /MD /Zc:forScope /Zc:wchar_t /wd4996 -c
-D_SECURE_SCL=0
-DNDEBUG
-DWIN32
-D_CRT_SECURE_NO_DEPRECATE
-D_SCL_SECURE_NO_DEPRECATE
-D_SECURE_SCL_THROWS=1
-D_SILENCE_DEPRECATION_OF_SECURE_SCL_THROWS
"-I."
"-Ihdf5-1.8.7\c++\src"
"-Ihdf5-1.8.7\src"
"-Ihdf5-1.8.7\src\windows"
I'm using a hacked up Boost.Build Jamfile to do the build using the following
H5pubconf.h:
http://codepad.org/wOB3CrAo
I don't remember the exact flags I used with CMake to generate it, but it was
pretty basic.
-Matt
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org