VC++ 6.0 - Error definition of dllimport and inconsistent dll linkage
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: VC++ 6.0 - Error definition of dllimport and inconsistent dll linkage

  1. #1
    Join Date
    Jun 2008
    Posts
    20

    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.


  2. #2
    Join Date
    Feb 2002
    Posts
    4,640

    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

  3. #3
    Join Date
    Jun 2008
    Posts
    20

    Re: VC++ 6.0 - Error definition of dllimport and inconsistent dll linkage

    Thanks a lot. Your support helped me a lot.
    Problem solved

  4. #4
    Arjay's Avatar
    Arjay is offline Moderator / MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    11,254

    Re: VC++ 6.0 - Error definition of dllimport and inconsistent dll linkage

    Quote Originally Posted by SlackDeb View Post
    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
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center