About inconsistent dll linkage
Posted
by baris_a
on Stack Overflow
See other posts from Stack Overflow
or by baris_a
Published on 2010-04-07T12:51:41Z
Indexed on
2010/04/07
12:53 UTC
Read the original article
Hit count: 349
How can I remove this link warning? You can see code segment that causes this warning. Also Thanks in advance.
static AFX_EXTENSION_MODULE GuiCtrlsDLL = { NULL, NULL };
//bla bla
// Exported DLL initialization is run in context of running application
extern "C" void WINAPI InitGuiCtrlsDLL()
{
// create a new CDynLinkLibrary for this app
new CDynLinkLibrary(GuiCtrlsDLL);
// nothing more to do
}
warning C4273: 'InitGuiCtrlsDLL' : inconsisten t dll linkage
I have also export and import definitions, like:
#ifdef _GUICTRLS
#define GUI_CTRLS_EXPORT __declspec(dllexport)
#else
#define GUI_CTRLS_EXPORT __declspec(dllimport)
#endif
© Stack Overflow or respective owner