Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows Shared Library Missing Exports #52

Open
dunkleyr opened this issue Feb 20, 2024 · 0 comments
Open

Windows Shared Library Missing Exports #52

dunkleyr opened this issue Feb 20, 2024 · 0 comments

Comments

@dunkleyr
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant