1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#include <cstdio> #if defined(_WIN32) || defined(WIN32) # define EXPORT __declspec(dllexport) #else # define EXPORT #endif #ifndef USING_HELPER2 #error define USING_HELPER2 missing #endif EXPORT void helper1_hello() { std::puts("helper1 says hello!"); }