Message 1 of 11
warning C4005: 'DLLIMPEXP' : macro redefinition ???
Not applicable
10-26-2009
12:20 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
Would someone know why I am getting the following warning: "warning C4005: 'DLLIMPEXP' : macro redefinition". I have a ARX project and a DBX project. But when I added a custom object to the DBX this warning appeared. Everything appears to run correctly. But I must be doing something wrong.
The wizard generated code in the ARX is redefining DLLIMPEXP from the DBX.
{code}
#ifdef TOOLARX_MODULE
#define DLLIMPEXP __declspec(dllexport)
#else
//----- Note: we don't use __declspec(dllimport) here, because of the
//----- "local vtable" problem with msvc. If you use __declspec(dllimport),
// ...
//----- memory indefinitely, there is no problem with vtables unexpectedly
//----- going away.
#define DLLIMPEXP
#endif
{code}
{code}
#ifdef TOOLDBX_MODULE
#define DLLIMPEXP __declspec(dllexport)
#else
//----- Note: we don't use __declspec(dllimport) here, because of the
//----- "local vtable" problem with msvc. If you use __declspec(dllimport),
// ...
//----- memory indefinitely, there is no problem with vtables unexpectedly
//----- going away.
#define DLLIMPEXP
#endif
{code}
I am not sure of how the generated code is meant to work so I am not sure how I should fix it.
Could anyone point me in the right direction?
Thank you
Joseph
Would someone know why I am getting the following warning: "warning C4005: 'DLLIMPEXP' : macro redefinition". I have a ARX project and a DBX project. But when I added a custom object to the DBX this warning appeared. Everything appears to run correctly. But I must be doing something wrong.
The wizard generated code in the ARX is redefining DLLIMPEXP from the DBX.
{code}
#ifdef TOOLARX_MODULE
#define DLLIMPEXP __declspec(dllexport)
#else
//----- Note: we don't use __declspec(dllimport) here, because of the
//----- "local vtable" problem with msvc. If you use __declspec(dllimport),
// ...
//----- memory indefinitely, there is no problem with vtables unexpectedly
//----- going away.
#define DLLIMPEXP
#endif
{code}
{code}
#ifdef TOOLDBX_MODULE
#define DLLIMPEXP __declspec(dllexport)
#else
//----- Note: we don't use __declspec(dllimport) here, because of the
//----- "local vtable" problem with msvc. If you use __declspec(dllimport),
// ...
//----- memory indefinitely, there is no problem with vtables unexpectedly
//----- going away.
#define DLLIMPEXP
#endif
{code}
I am not sure of how the generated code is meant to work so I am not sure how I should fix it.
Could anyone point me in the right direction?
Thank you
Joseph