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

Cannot buid a static Windows restbed library without export any symbol #531

Open
madebr opened this issue Oct 22, 2022 · 1 comment
Open

Comments

@madebr
Copy link

madebr commented Oct 22, 2022

On current master, you cannot build restbed without exporting any restbed symbol.
This is because __declspec(dllimport) or __declspec(dllexport) is always prepended.

#if defined(_WIN32) || defined(__WIN32__) || defined(WIN32) || defined(_WIN64)
#ifdef WIN_DLL_EXPORT
#define REQUEST_EXPORT __declspec(dllexport)
#else
#define REQUEST_EXPORT __declspec(dllimport)
#endif
#else
#define REQUEST_EXPORT __attribute__((visibility ("default")))
#endif

There is no path to avoid the __declspec or the __attribute__((visibility ("default"))).

@alex1891
Copy link

hey, is there any progress regarding this issue? We cannot static link the restbed webserver on windows

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

Successfully merging a pull request may close this issue.

4 participants