Closed inkychris closed 1 year ago
Building the static library for MSVC fails with a number of DLL related errors, e.g:
error C2491: 'mp4v2::platform::io::FileSystem::DIR_SEPARATOR': definition of dllimport static data member not allowed
It also emits a number of similar warnings, e.g:
warning C4273: 'mp4v2::platform::io::FileSystem::exists': inconsistent dll linkage
This can be resolved by explicitly defining MP4V2_USE_STATIC_LIB in CMake when adding the target. This definition is already added explicitly in the Visual Studio project files currently checked in.
MP4V2_USE_STATIC_LIB
Fixed in 5a5d76e2. Thank you for reporting this!
Fix included in MP4v2 v2.1.2 released just now.
Building the static library for MSVC fails with a number of DLL related errors, e.g:
It also emits a number of similar warnings, e.g:
This can be resolved by explicitly defining
MP4V2_USE_STATIC_LIB
in CMake when adding the target. This definition is already added explicitly in the Visual Studio project files currently checked in.