CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2005
    Location
    SJCampos - SP - Brazil
    Posts
    30

    Question LINK : warning LNK4243

    I have a C++.Net Library project that wrap C++ unmanaged classes. I will use this Library in a C#.Net application.

    Now, after a hard work, and with helps of Nohero and Darwen, I could clean the compile and linker errors. But I still get this link warnings:


    msvcrt.lib(checkclr.obj) : warning LNK4210: .CRT section exists; there may be unhandled static initializers or terminators
    msvcrt.lib(secchk.obj) : warning LNK4210: .CRT section exists; there may be unhandled static initializers or terminators
    If I use take out “/NOENTRY” of the link options I get:

    LINK : warning LNK4243: DLL containing objects compiled with /clr is not linked with /NOENTRY; image may not run correctly
    If I put back “/NOENTRY” on link options, I get the errors above.

    I am using the options: Link/Input/Additional Dependencies: mscoree.lib msvcrt.lib.

    Do you know what kind of problems do I have here???

    My units code are attached.

    Thank you in advance.
    Last edited by Eliseu_CEL; February 6th, 2006 at 04:10 PM.
    Eliseu M. Gomes

    [email protected]

  2. #2
    Join Date
    Mar 2004
    Location
    (Upper-) Austria
    Posts
    2,899

    Re: LINK : warning LNK4243

    http://support.microsoft.com/?id=814472, I see you have tried the solution with the entry point. To be frank I never had this error message before, and thus can't tell you any other solution. Have you tried searching the microsoft groups? Here is an interesting result.
    I am not offering technical guidiance via email or IM
    Come on share your photo with us! CG members photo album!
    Use the Code Tags!

  3. #3
    Join Date
    Dec 2005
    Location
    SJCampos - SP - Brazil
    Posts
    30

    Thumbs up Re: LINK : warning LNK4243

    Cool....

    I have added __DllMainCRTStartup@12 on Linker/Input/Force Symbol References, and now I don´t have link warnings.

    PDAManager - 0 error(s), 0 warning(s)
    Thanks Nohero.
    Last edited by Eliseu_CEL; January 12th, 2006 at 04:02 PM. Reason: more appropriate icon
    Eliseu M. Gomes

    [email protected]

  4. #4
    Join Date
    Mar 2004
    Location
    (Upper-) Austria
    Posts
    2,899

    Re: LINK : warning LNK4243

    You are welcome!
    I am not offering technical guidiance via email or IM
    Come on share your photo with us! CG members photo album!
    Use the Code Tags!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured