You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can pull the latest master branch and open in Visual Studio 2022 and it builds the executables and shared libraries fine; however, I would like to use the shared library SZ3c.dll directly instead of calling the executable. The library built and placed at /out/build/x64-Debug/tools/sz3c/SZ3c.dll does not appear to have any exported functions. Is there an easy way to export SZ_compress_args and SZ_decompress functions so they can be called dynamically using SZ3c.dll.
I tried adding the following to CMakeLists.txt file:
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS 1)
But it didn't seem to change anything. I also added the following lines based on some google searches:
The build then generated a sz3c_export.h file, but it doesn't have the functions in it or in the final DLL. I feel like this should be easy, but I am new to CMAKE and can't seem to find a solution online. Anyone know how this could be done?
The text was updated successfully, but these errors were encountered:
I can pull the latest master branch and open in Visual Studio 2022 and it builds the executables and shared libraries fine; however, I would like to use the shared library SZ3c.dll directly instead of calling the executable. The library built and placed at /out/build/x64-Debug/tools/sz3c/SZ3c.dll does not appear to have any exported functions. Is there an easy way to export SZ_compress_args and SZ_decompress functions so they can be called dynamically using SZ3c.dll.
I tried adding the following to CMakeLists.txt file:
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS 1)
But it didn't seem to change anything. I also added the following lines based on some google searches:
include(GenerateExportHeader)
generate_export_header(SZ3c)
The build then generated a sz3c_export.h file, but it doesn't have the functions in it or in the final DLL. I feel like this should be easy, but I am new to CMAKE and can't seem to find a solution online. Anyone know how this could be done?
The text was updated successfully, but these errors were encountered: