This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Compiling error while compiling VC++ code on Ubuntu using GCC


#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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]