restbed icon indicating copy to clipboard operation
restbed copied to clipboard

Cannot buid a static Windows restbed library without export any symbol

Open madebr opened this issue 3 years ago • 1 comments

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

https://github.com/Corvusoft/restbed/blob/0c99284fba4f37a89de24972e48b8154abc5dc75/source/corvusoft/restbed/request.hpp#L24-L32

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

madebr avatar Oct 22 '22 12:10 madebr

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

alex1891 avatar Oct 23 '24 08:10 alex1891