Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Linker problems

Linker problems

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++helpcomdebugging
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    alex barylski
    wrote on last edited by
    #1

    Creating library ReleaseMinSize/ezrename.lib and object ReleaseMinSize/ezrename.exp LIBCMT.lib(wwincrt0.obj) : error LNK2001: unresolved external symbol _wWinMain@16 I get this error message when I build in anything other than debug...it's an ATL COM object. :-O I figure it's a general C++ type question so I posted in here... How to I fix this 'particular' linker error? My local MSDN docs say check out MSKB article: Q125750 But it appears this is for dot net...not vc6 cuz I tried it and didn't get it to work...? WTF... TIA :) How do I print my voice mail?

    D 1 Reply Last reply
    0
    • A alex barylski

      Creating library ReleaseMinSize/ezrename.lib and object ReleaseMinSize/ezrename.exp LIBCMT.lib(wwincrt0.obj) : error LNK2001: unresolved external symbol _wWinMain@16 I get this error message when I build in anything other than debug...it's an ATL COM object. :-O I figure it's a general C++ type question so I posted in here... How to I fix this 'particular' linker error? My local MSDN docs say check out MSKB article: Q125750 But it appears this is for dot net...not vc6 cuz I tried it and didn't get it to work...? WTF... TIA :) How do I print my voice mail?

      D Offline
      D Offline
      De Nardis Andrea
      wrote on last edited by
      #2

      PRB: Error LNK2001: '_WinMain@16': Unresolved External Symbol Si applica a This article was previously published under Q125750 NOTE: Microsoft Visual C++ NET (2002) supported both the managed code model that is provided by the .NET Framework and the unmanaged native Windows code model. The information in this article applies to unmanaged Visual C++ code only. SYMPTOMS The linker generates the following error, when you build an MFC application with UNICODE support using the Microsoft products listed at the beginning of this article: msvcrt.lib(crtexew.obj) : error LNK2001: unresolved external symbol "_WinMain@16" Visual C++ .NET: error LNK2019: unresolved external symbol _WinMain@16 referenced in function _WinMainCRTStartup fatal error LNK1120: 1 unresolved externals CAUSE MFC UNICODE applications use wWinMainCRTStartup as the entry point. RESOLUTION In the Output category of the Link tab in the Project Settings dialog box, set the Entry Point Symbol to wWinMainCRTStartup. For Visual C++ .NET: In the Advanced category of the Linker folder in the Project Properties dialog box, set the Entry Point to wWinMainCRTStartup. STATUS This behavior is by design. REFERENCES The above information is documented in Books Online under this structure: - C/C++ - Programming Techniques - Chapter 12 Developing for International Markets - Support for Unicode - Unicode Programming: Summary This reference also lists the additional steps that you need to consider to take advantage of the MFC and C run-time support for Unicode. :)

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups