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. Build Error: VS 7

Build Error: VS 7

Scheduled Pinned Locked Moved C / C++ / MFC
helpvisual-studio
9 Posts 5 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.
  • L Offline
    L Offline
    luhfluh
    wrote on last edited by
    #1

    Hi all, I have 2 build errors with no solution to and was wondering if any of ou could help me with. The first is ----MM error LNK2019: unresolved external symbol _WinMain@16 referenced in function _WinMainCRTStartup The second ----MM fatal error LNK1120: 1 unresolved externals All suggestions welcomed. Thanks

    N N 3 Replies Last reply
    0
    • L luhfluh

      Hi all, I have 2 build errors with no solution to and was wondering if any of ou could help me with. The first is ----MM error LNK2019: unresolved external symbol _WinMain@16 referenced in function _WinMainCRTStartup The second ----MM fatal error LNK1120: 1 unresolved externals All suggestions welcomed. Thanks

      N Offline
      N Offline
      Naveen
      wrote on last edited by
      #2

      Set wWinMainCRTStartup as the applications entry point Steps in VS 6 to set the enrty point project->Settings->Link in the category combo box select output. then in the Entry point edit box enter wWinMainCRTStartup i don't know if this is same for VC7 nave

      1 Reply Last reply
      0
      • L luhfluh

        Hi all, I have 2 build errors with no solution to and was wondering if any of ou could help me with. The first is ----MM error LNK2019: unresolved external symbol _WinMain@16 referenced in function _WinMainCRTStartup The second ----MM fatal error LNK1120: 1 unresolved externals All suggestions welcomed. Thanks

        N Offline
        N Offline
        Nibu babu thomas
        wrote on last edited by
        #3

        Change the subsystem to WINDOWS. This is how we change it... Project --Project Properties ---Configuration Properties ----Linker -----System ------SubSystem -->Change this to Windows (/SUBSYSTEM:WINDOWS)


        Nibu thomas Software Developer

        T L 2 Replies Last reply
        0
        • N Nibu babu thomas

          Change the subsystem to WINDOWS. This is how we change it... Project --Project Properties ---Configuration Properties ----Linker -----System ------SubSystem -->Change this to Windows (/SUBSYSTEM:WINDOWS)


          Nibu thomas Software Developer

          T Offline
          T Offline
          toxcct
          wrote on last edited by
          #4

          Nibu thomas wrote:

          Which version of VS are you using...

          it is in the title... VS7

          L 1 Reply Last reply
          0
          • N Nibu babu thomas

            Change the subsystem to WINDOWS. This is how we change it... Project --Project Properties ---Configuration Properties ----Linker -----System ------SubSystem -->Change this to Windows (/SUBSYSTEM:WINDOWS)


            Nibu thomas Software Developer

            L Offline
            L Offline
            luhfluh
            wrote on last edited by
            #5

            Tks for your suggestion, but the settings is already as you indicated. Is there any other solution you think might help.?

            R 1 Reply Last reply
            0
            • T toxcct

              Nibu thomas wrote:

              Which version of VS are you using...

              it is in the title... VS7

              L Offline
              L Offline
              luhfluh
              wrote on last edited by
              #6

              It is ver: 7.1.3088

              1 Reply Last reply
              0
              • L luhfluh

                Hi all, I have 2 build errors with no solution to and was wondering if any of ou could help me with. The first is ----MM error LNK2019: unresolved external symbol _WinMain@16 referenced in function _WinMainCRTStartup The second ----MM fatal error LNK1120: 1 unresolved externals All suggestions welcomed. Thanks

                N Offline
                N Offline
                Nibu babu thomas
                wrote on last edited by
                #7

                Can you modify WinMain to _tWinMain

                int APIENTRY _tWinMain(
                HINSTANCE hInstance,
                HINSTANCE hPrevInstance,
                LPTSTR lpCmdLine,
                int nCmdShow
                )
                {}

                This happens because of UNICODE compilation...


                Nibu thomas Software Developer

                L 1 Reply Last reply
                0
                • N Nibu babu thomas

                  Can you modify WinMain to _tWinMain

                  int APIENTRY _tWinMain(
                  HINSTANCE hInstance,
                  HINSTANCE hPrevInstance,
                  LPTSTR lpCmdLine,
                  int nCmdShow
                  )
                  {}

                  This happens because of UNICODE compilation...


                  Nibu thomas Software Developer

                  L Offline
                  L Offline
                  luhfluh
                  wrote on last edited by
                  #8

                  tks for your help....it does work!! Regards...

                  1 Reply Last reply
                  0
                  • L luhfluh

                    Tks for your suggestion, but the settings is already as you indicated. Is there any other solution you think might help.?

                    R Offline
                    R Offline
                    Rster021111
                    wrote on last edited by
                    #9

                    Did you make sure you included the appropriate files into your solution? You can get linker errors if you happen to forget to include the appropriate files (to your solution,) or if you forget to add the appropriate libraries to the properties tab in your project. Make sure those are correct since that has caused me some time in debugging. BR

                    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