Corvusoft / restbed

Corvusoft's Restbed framework brings asynchronous RESTful functionality to C++14 applications.
http://www.corvusoft.co.uk
Other
1.92k stars 379 forks source link

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

Open madebr opened 1 year ago

madebr commented 1 year ago

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"))).