1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
extern int testSharedLibHelperObj(int n); #ifdef testSharedLibHelperObj_NO_OBJECT int testSharedLibHelperObj(int n) { return n; } #endif #if defined(_WIN32) __declspec(dllimport) #endif int testSharedLibWithHelper(int n); int main(void) { return testSharedLibWithHelper(0) + testSharedLibHelperObj(0); }