This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Compiling error while compiling VC++ code on Ubuntu using GCC
- From: Raman <i dot ramandas at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 7 Aug 2013 01:19:39 -0700 (PDT)
- Subject: Re: Compiling error while compiling VC++ code on Ubuntu using GCC
- References: <1375856065877-958768 dot post at n5 dot nabble dot com> <1375857696022-958771 dot post at n5 dot nabble dot com> <1375858642978-958775 dot post at n5 dot nabble dot com>
#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.