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. .NET (Core and Framework)
  4. Urgent help needed

Urgent help needed

Scheduled Pinned Locked Moved .NET (Core and Framework)
helpcsharpc++visual-studiodebugging
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.
  • 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:)

    S 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:)

      S Offline
      S Offline
      S Senthil Kumar
      wrote on last edited by
      #2

      Is your application a console app or a GUI app? In case it's a console app, you need to define a main function which acts as the entry point for the program. For GUI apps, it depends on whether you're using MFC or not. Regards Senthil _____________________________ My Blog | My Articles | WinMacro

      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