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. ATL / WTL / STL
  4. Help with Error

Help with Error

Scheduled Pinned Locked Moved ATL / WTL / STL
helpdebuggingannouncementworkspace
6 Posts 4 Posters 13 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.
  • J Offline
    J Offline
    Jose Cruz
    wrote on last edited by
    #1

    Can somebody help me eliminate the following error. I get this error when I compile for Release and not for debug. --------------------Configuration: esContaX - Win32 Release-------------------- Linking... LIBCMT.lib(crt0.obj) : error LNK2001: unresolved external symbol _main Release/esContaX.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. esContaX.exe - 2 error(s), 0 warning(s) I Know this error is related to that the function _main is somehow unrichable. But why could this happen only in release mode. :confused:

    S M L 3 Replies Last reply
    0
    • J Jose Cruz

      Can somebody help me eliminate the following error. I get this error when I compile for Release and not for debug. --------------------Configuration: esContaX - Win32 Release-------------------- Linking... LIBCMT.lib(crt0.obj) : error LNK2001: unresolved external symbol _main Release/esContaX.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. esContaX.exe - 2 error(s), 0 warning(s) I Know this error is related to that the function _main is somehow unrichable. But why could this happen only in release mode. :confused:

      S Offline
      S Offline
      Stephane Rodriguez
      wrote on last edited by
      #2

      Try changing the C/C++ run-time you link with : VC++ / C++ / CodeGeneration / (single threaded(libc) | multithreadedstatic(libcmd) | multithreadeddll(msvcrt)).


      She's so dirty, she threw a boomerang and it wouldn't even come back.

      J 1 Reply Last reply
      0
      • S Stephane Rodriguez

        Try changing the C/C++ run-time you link with : VC++ / C++ / CodeGeneration / (single threaded(libc) | multithreadedstatic(libcmd) | multithreadeddll(msvcrt)).


        She's so dirty, she threw a boomerang and it wouldn't even come back.

        J Offline
        J Offline
        Jose Cruz
        wrote on last edited by
        #3

        Can you please tell me how do I do that. Thank you:zzz:

        S 1 Reply Last reply
        0
        • J Jose Cruz

          Can you please tell me how do I do that. Thank you:zzz:

          S Offline
          S Offline
          Stephane Rodriguez
          wrote on last edited by
          #4

          My post was detailing the actual tab and combobox in the Project settings.


          She's so dirty, she threw a boomerang and it wouldn't even come back.

          1 Reply Last reply
          0
          • J Jose Cruz

            Can somebody help me eliminate the following error. I get this error when I compile for Release and not for debug. --------------------Configuration: esContaX - Win32 Release-------------------- Linking... LIBCMT.lib(crt0.obj) : error LNK2001: unresolved external symbol _main Release/esContaX.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. esContaX.exe - 2 error(s), 0 warning(s) I Know this error is related to that the function _main is somehow unrichable. But why could this happen only in release mode. :confused:

            M Offline
            M Offline
            Michael Dunn
            wrote on last edited by
            #5

            See the VC forum FAQ (link at the top of this page) --Mike-- Just released - 1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click! My really out-of-date homepage Sonork-100.19012 Acid_Helm

            1 Reply Last reply
            0
            • J Jose Cruz

              Can somebody help me eliminate the following error. I get this error when I compile for Release and not for debug. --------------------Configuration: esContaX - Win32 Release-------------------- Linking... LIBCMT.lib(crt0.obj) : error LNK2001: unresolved external symbol _main Release/esContaX.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. esContaX.exe - 2 error(s), 0 warning(s) I Know this error is related to that the function _main is somehow unrichable. But why could this happen only in release mode. :confused:

              L Offline
              L Offline
              Le centriste
              wrote on last edited by
              #6

              remove the _ATL_MIN_CRT preprocessor directive from your project settings (in Release build). Michel It is a lovely language, but it takes a very long time to say anything in it, because we do not say anything in it, unless it is worth taking a very long time to say, and to listen to.
              - TreeBeard

              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