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. Plz. help.............

Plz. help.............

Scheduled Pinned Locked Moved C / C++ / MFC
helpcsharpc++visual-studiodebugging
3 Posts 3 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.
  • N Offline
    N Offline
    NityaKakkar
    wrote on last edited by
    #1

    Hi, I am working on Microsoft Visual Studio .NET 2003 VC++. I have created a solution & i am trying :confused: too build it & i am facing the following error: LINK : warning LNK4001: no object files specified; libraries used libcmtd.lib(crt0.obj) : error LNK2019: unresolved external symbol _main referenced in function _mainCRTStartup Debug/MP1G.exe : fatal error LNK1120: 1 unresolved externals When this error came i went to the properties in linker\system i changed the subsytem from Console (/SUBSYSTEM:CONSOLE) to Windows (/SUBSYSTEM:WINDOWS) & in the advanced tab changed the entry point from mainCRTStartup to wWinMainCRTStartup. But then the following error is coming: LINK : warning LNK4001: no object files specified; libraries used ibcmtd.lib(wwincrt0.obj) : error LNK2019: unresolved external symbol _wWinMain@16 referenced in function _wWinMainCRTStartup Debug/MP1G.exe : fatal error LNK1120: 1 unresolved externals How to solve this problem as fast as possible. Thanks in advance:)

    T J 2 Replies Last reply
    0
    • N NityaKakkar

      Hi, I am working on Microsoft Visual Studio .NET 2003 VC++. I have created a solution & i am trying :confused: too build it & i am facing the following error: LINK : warning LNK4001: no object files specified; libraries used libcmtd.lib(crt0.obj) : error LNK2019: unresolved external symbol _main referenced in function _mainCRTStartup Debug/MP1G.exe : fatal error LNK1120: 1 unresolved externals When this error came i went to the properties in linker\system i changed the subsytem from Console (/SUBSYSTEM:CONSOLE) to Windows (/SUBSYSTEM:WINDOWS) & in the advanced tab changed the entry point from mainCRTStartup to wWinMainCRTStartup. But then the following error is coming: LINK : warning LNK4001: no object files specified; libraries used ibcmtd.lib(wwincrt0.obj) : error LNK2019: unresolved external symbol _wWinMain@16 referenced in function _wWinMainCRTStartup Debug/MP1G.exe : fatal error LNK1120: 1 unresolved externals How to solve this problem as fast as possible. Thanks in advance:)

      T Offline
      T Offline
      ThatsAlok
      wrote on last edited by
      #2

      NityaKakkar wrote:

      How to solve this problem as fast as possible.

      Create a new Windows based Project!, fastest way to solve this problem

      "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

      cheers, Alok Gupta VC Forum Q&A :- I/ IV

      1 Reply Last reply
      0
      • N NityaKakkar

        Hi, I am working on Microsoft Visual Studio .NET 2003 VC++. I have created a solution & i am trying :confused: too build it & i am facing the following error: LINK : warning LNK4001: no object files specified; libraries used libcmtd.lib(crt0.obj) : error LNK2019: unresolved external symbol _main referenced in function _mainCRTStartup Debug/MP1G.exe : fatal error LNK1120: 1 unresolved externals When this error came i went to the properties in linker\system i changed the subsytem from Console (/SUBSYSTEM:CONSOLE) to Windows (/SUBSYSTEM:WINDOWS) & in the advanced tab changed the entry point from mainCRTStartup to wWinMainCRTStartup. But then the following error is coming: LINK : warning LNK4001: no object files specified; libraries used ibcmtd.lib(wwincrt0.obj) : error LNK2019: unresolved external symbol _wWinMain@16 referenced in function _wWinMainCRTStartup Debug/MP1G.exe : fatal error LNK1120: 1 unresolved externals How to solve this problem as fast as possible. Thanks in advance:)

        J Offline
        J Offline
        John R Shaw
        wrote on last edited by
        #3

        I am not using .NET, but it sounds like you not have a main function your console application. If it is a console application then swhiching to it to a windows application will naturely generate more errors. INTP Every thing is relative...

        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