February 3rd, 2010 03:57 PM
#1
VC++ 6.0 - Error definition of dllimport and inconsistent dll linkage
Hello,
I'm having problems at build my project in Visual C++ 6.0. I'm searching information in Internet, but I don't understand.
Code:
C:\Provir Tesis\Provir Fuentes\Monica - ipv6\Provir_cod\Comun\RTP.cpp(17) : warning C4273: 'CreateObject' : inconsistent dll linkage. dllexport assumed.
C:\Provir Tesis\Provir Fuentes\Monica - ipv6\Provir_cod\Comun\RTP.cpp(17) : warning C4273: '_GetBaseClass' : inconsistent dll linkage. dllexport assumed.
C:\Provir Tesis\Provir Fuentes\Monica - ipv6\Provir_cod\Comun\RTP.cpp(17) : warning C4273: 'public: static struct CRuntimeClass const CRTP::classCRTP' : inconsistent dll linkage. dllexport assumed.
C:\Provir Tesis\Provir Fuentes\Monica - ipv6\Provir_cod\Comun\RTP.cpp(17) : error C2491: 'CRTP::classCRTP' : definition of dllimport static data member not allowed
C:\Provir Tesis\Provir Fuentes\Monica - ipv6\Provir_cod\Comun\RTP.cpp(17) : warning C4273: 'GetRuntimeClass' : inconsistent dll linkage. dllexport assumed.
C:\Provir Tesis\Provir Fuentes\Monica - ipv6\Provir_cod\Comun\RTP.cpp(20) : warning C4273: 'CRTP::CRTP' : inconsistent dll linkage. dllexport assumed.
C:\Provir Tesis\Provir Fuentes\Monica - ipv6\Provir_cod\Comun\RTP.cpp(38) : warning C4273: 'Create' : inconsistent dll linkage. dllexport assumed.
C:\Provir Tesis\Provir Fuentes\Monica - ipv6\Provir_cod\Comun\RTP.cpp(110) : warning C4273: 'CRTP::~CRTP' : inconsistent dll linkage. dllexport assumed.
C:\Provir Tesis\Provir Fuentes\Monica - ipv6\Provir_cod\Comun\RTP.cpp(133) : warning C4273: 'ThreadProc' : inconsistent dll linkage. dllexport assumed.
C:\Provir Tesis\Provir Fuentes\Monica - ipv6\Provir_cod\Comun\RTP.cpp(145) : warning C4273: 'ThreadProc' : inconsistent dll linkage. dllexport assumed.
C:\Provir Tesis\Provir Fuentes\Monica - ipv6\Provir_cod\Comun\RTP.cpp(212) : warning C4273: 'RXDatos' : inconsistent dll linkage. dllexport assumed.
C:\Provir Tesis\Provir Fuentes\Monica - ipv6\Provir_cod\Comun\RTP.cpp(218) : warning C4273: 'TXDatos' : inconsistent dll linkage. dllexport assumed.
C:\Provir Tesis\Provir Fuentes\Monica - ipv6\Provir_cod\Comun\RTP.cpp(285) : warning C4273: 'TX' : inconsistent dll linkage. dllexport assumed.
C:\Provir Tesis\Provir Fuentes\Monica - ipv6\Provir_cod\Comun\RTP.cpp(293) : warning C4273: 'GetParametro' : inconsistent dll linkage. dllexport assumed.
C:\Provir Tesis\Provir Fuentes\Monica - ipv6\Provir_cod\Comun\RTP.cpp(314) : warning C4273: 'SetParametro' : inconsistent dll linkage. dllexport assumed.
C:\Provir Tesis\Provir Fuentes\Monica - ipv6\Provir_cod\Comun\RTP.cpp(324) : warning C4273: 'AddDestino' : inconsistent dll linkage. dllexport assumed.
C:\Provir Tesis\Provir Fuentes\Monica - ipv6\Provir_cod\Comun\RTP.cpp(332) : warning C4273: 'DelDestino' : inconsistent dll linkage. dllexport assumed.
C:\Provir Tesis\Provir Fuentes\Monica - ipv6\Provir_cod\Comun\RTP.cpp(340) : warning C4273: 'GetConfigStr' : inconsistent dll linkage. dllexport assumed.
C:\Provir Tesis\Provir Fuentes\Monica - ipv6\Provir_cod\Comun\RTP.cpp(345) : warning C4273: 'SetConfigStr' : inconsistent dll linkage. dllexport assumed.
C:\Provir Tesis\Provir Fuentes\Monica - ipv6\Provir_cod\Comun\RTP.cpp(385) : warning C4273: 'ReadConfigStr' : inconsistent dll linkage. dllexport assumed.
C:\Provir Tesis\Provir Fuentes\Monica - ipv6\Provir_cod\Comun\RTP.cpp(416) : warning C4273: 'WriteConfigStr' : inconsistent dll linkage. dllexport assumed.
C:\Provir Tesis\Provir Fuentes\Monica - ipv6\Provir_cod\Comun\RTP.cpp(441) : warning C4273: 'CCtrlRTP::CCtrlRTP' : inconsistent dll linkage. dllexport assumed.
C:\Provir Tesis\Provir Fuentes\Monica - ipv6\Provir_cod\Comun\RTP.cpp(447) : warning C4273: 'CCtrlRTP::~CCtrlRTP' : inconsistent dll linkage. dllexport assumed.
C:\Provir Tesis\Provir Fuentes\Monica - ipv6\Provir_cod\Comun\RTP.cpp(455) : warning C4273: 'AddDestino' : inconsistent dll linkage. dllexport assumed.
C:\Provir Tesis\Provir Fuentes\Monica - ipv6\Provir_cod\Comun\RTP.cpp(465) : warning C4273: 'DelDestino' : inconsistent dll linkage. dllexport assumed.
C:\Provir Tesis\Provir Fuentes\Monica - ipv6\Provir_cod\Comun\RTP.cpp(473) : warning C4273: 'Buscar' : inconsistent dll linkage. dllexport assumed.
C:\Provir Tesis\Provir Fuentes\Monica - ipv6\Provir_cod\Comun\RTP.cpp(485) : warning C4273: 'BYEDestroy' : inconsistent dll linkage. dllexport assumed.
C:\Provir Tesis\Provir Fuentes\Monica - ipv6\Provir_cod\Comun\RTP.cpp(510) : warning C4273: 'Create' : inconsistent dll linkage. dllexport assumed.
C:\Provir Tesis\Provir Fuentes\Monica - ipv6\Provir_cod\Comun\RTP.cpp(597) : warning C4273: 'AddDestinoP' : inconsistent dll linkage. dllexport assumed.
C:\Provir Tesis\Provir Fuentes\Monica - ipv6\Provir_cod\Comun\RTP.cpp(603) : warning C4273: 'DelDestinoP' : inconsistent dll linkage. dllexport assumed.
C:\Provir Tesis\Provir Fuentes\Monica - ipv6\Provir_cod\Comun\RTP.cpp(611) : warning C4273: 'AddDestinoP' : inconsistent dll linkage. dllexport assumed.
Error executing cl.exe.
PROVIR.exe - 1 error(s), 30 warning(s)
Please help me.
February 5th, 2010 11:52 AM
#2
Re: VC++ 6.0 - Error definition of dllimport and inconsistent dll linkage
According to the MSDN C2491 means that you've defined (not declared) some static data and you are trying to import it from a DLL.
C4273 means that you've probably "double declared" these (as the same type, but with different linkages). The compiler is assuming you meant to export them.
Viggy
February 8th, 2010 01:21 PM
#3
Re: VC++ 6.0 - Error definition of dllimport and inconsistent dll linkage
Thanks a lot. Your support helped me a lot.
Problem solved
February 8th, 2010 01:37 PM
#4
Re: VC++ 6.0 - Error definition of dllimport and inconsistent dll linkage
Originally Posted by
SlackDeb
Thanks a lot. Your support helped me a lot.
Problem solved
In the future, you may want to post these types of questions in the Visual C++ forum.
This forum is for compiler bugs (not your bugs).
Tags for this Thread
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width
Bookmarks