Corvusoft / restbed

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

Enable build with -fvisibility=hidden #498

Closed bansan85 closed 2 years ago

bansan85 commented 2 years ago

I tried to build and run a program with -fsanitize=cfi (and -flto=thin -fvisibility=hidden -fno-sanitize-trap=cfi) according to the clang documentation.

So with this option, all class are by default hidden.

According to GCC documentation, the C++ visibility support should be __attribute__ ((visibility ("default"))) for *_EXPORT with Linux.