1 2 3 4 5 6 7 8 9 10 11 12 13
#if defined(_WIN32) || defined(__CYGWIN__) # define testExe2_IMPORT __declspec(dllimport) #else # define testExe2_IMPORT #endif testExe2_IMPORT int testExe2Func(void); testExe2_IMPORT int testExe2lib(void); int imp_mod1() { return testExe2Func() + testExe2lib(); }