Replies: 2 comments
-
|
Hi @jrobcary, we don't currently have any CMake options to map directly to the different build types on Windows. They could be added, but in the meantime you may be able to get away with specifying the desired flags in the flags for a particular C build configuration. For example, setting |
Beta Was this translation helpful? Give feedback.
-
|
I've tried that with no luck. A dependent executable linking to hdf5.lib errors with the below, which indicates, I think, that hdf5.lib is expecting the dynamic lib msvcrt rather than the static libcmt. ????
lld-link: error: undefined symbol: __declspec(dllimport) fputs
lld-link: error: undefined symbol: __declspec(dllimport) strdup
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
On windows there are basically 3 builds, with flags
STATIC, STATIC RUNTIME /MT
STATIC, SHARED RUNTIME /MD
SHARED, SHARED RUNTIME /MD producing dlls
How does one build for each of the cases above?
More:
It appears that hdf5's build system does not recognize the BUILD_WITH_SHARED_RUNTIME flag, but it does have BUILD_SHARED_LIBS:BOOL and BUILD_STATIC_LIBS:BOOL.
Is there a mapping from those parameters to the 3 cases above?
Beta Was this translation helpful? Give feedback.
All reactions