#pragma once #include // annotate with clang attribute or via comment annotation recognized by libclang // Use ANNOTATE attribute supported by clang: __attribute__((annotate("export"))) class RPC_EXPORT MyService { public: RPC_EXPORT int add(int a, int b); int minus(int a, int b); };