#ifdef CRUNTIMEDLL_EXPORTS #ifdef _WIN32 #define CRUNTIMEDLL_API extern "C" __declspec(dllexport) #else #defineCRUNTIMEDLL_API extern "C" #endif #else Runtimedll.h file contains below mention code: #ifdef _WIN32 #define CRUNTIMEDLL_API __declspec(dllimport) #else #define CRUNTIMEDLL_API #endif #endif // This class is exported from the CRuntimeDll.dll class CCRuntimeDll { public: CCRuntimeDll(void); // TODO: add your methods here. }; extern int nCRuntimeDll; CRUNTIMEDLL_API int fnCRuntimeDll(void); -- View this message in context: http://gcc.1065356.n5.nabble.com/Compiling-error-while-compiling-VC-code-on-Ubuntu-using-GCC-tp958768p958789.html Sent from the gcc - Help mailing list archive at Nabble.com.