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. unresolved external symbol _wWinMain@16

unresolved external symbol _wWinMain@16

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpdiscussion
10 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.
  • R Offline
    R Offline
    Raghavendra Pise
    wrote on last edited by
    #1

    Hi Friends, I am new to this discussion. I am facing Linker error while building my project. Error is:Creating library C:\Program Files\Quark\QuarkDDS 4\QuarkDDS\XTension\OptimakerSXT2.lib and object C:\Program Files\Quark\QuarkDDS 4\QuarkDDS\XTension\OptimakerSXT2.exp LIBCD.lib(wwincrt0.obj) : error LNK2001: unresolved external symbol _wWinMain@16 C:\Program Files\Quark\QuarkDDS 4\QuarkDDS\XTension\OptimakerSXT2.xnt : fatal error LNK1120: 1 unresolved externals Error executing link.exe. I have done settings like: 1) c/c++ Tab->Preproccessor->WIN32,_DEBUG,_WINDOWS,_MBCS 2) Link-> Output->wWinMainCRTStartup. Inspite of these settings i am getting Above errors.Anybody knows, please reply me.

    P H V L 4 Replies Last reply
    0
    • R Raghavendra Pise

      Hi Friends, I am new to this discussion. I am facing Linker error while building my project. Error is:Creating library C:\Program Files\Quark\QuarkDDS 4\QuarkDDS\XTension\OptimakerSXT2.lib and object C:\Program Files\Quark\QuarkDDS 4\QuarkDDS\XTension\OptimakerSXT2.exp LIBCD.lib(wwincrt0.obj) : error LNK2001: unresolved external symbol _wWinMain@16 C:\Program Files\Quark\QuarkDDS 4\QuarkDDS\XTension\OptimakerSXT2.xnt : fatal error LNK1120: 1 unresolved externals Error executing link.exe. I have done settings like: 1) c/c++ Tab->Preproccessor->WIN32,_DEBUG,_WINDOWS,_MBCS 2) Link-> Output->wWinMainCRTStartup. Inspite of these settings i am getting Above errors.Anybody knows, please reply me.

      P Offline
      P Offline
      prasad_som
      wrote on last edited by
      #2

      Raghavendra Pise wrote:

      1. Link-> Output->wWinMainCRTStartup.

      You might wanted to say Link-->Output-->Entry point symbol-->wWinMainCRTStartup

      Prasad Notifier using ATL | Operator new[],delete[][^]

      R 1 Reply Last reply
      0
      • R Raghavendra Pise

        Hi Friends, I am new to this discussion. I am facing Linker error while building my project. Error is:Creating library C:\Program Files\Quark\QuarkDDS 4\QuarkDDS\XTension\OptimakerSXT2.lib and object C:\Program Files\Quark\QuarkDDS 4\QuarkDDS\XTension\OptimakerSXT2.exp LIBCD.lib(wwincrt0.obj) : error LNK2001: unresolved external symbol _wWinMain@16 C:\Program Files\Quark\QuarkDDS 4\QuarkDDS\XTension\OptimakerSXT2.xnt : fatal error LNK1120: 1 unresolved externals Error executing link.exe. I have done settings like: 1) c/c++ Tab->Preproccessor->WIN32,_DEBUG,_WINDOWS,_MBCS 2) Link-> Output->wWinMainCRTStartup. Inspite of these settings i am getting Above errors.Anybody knows, please reply me.

        H Offline
        H Offline
        Hamid Taebi
        wrote on last edited by
        #3

        I think you asked this question yesterday?did you get your answer


        WhiteSky


        R 1 Reply Last reply
        0
        • P prasad_som

          Raghavendra Pise wrote:

          1. Link-> Output->wWinMainCRTStartup.

          You might wanted to say Link-->Output-->Entry point symbol-->wWinMainCRTStartup

          Prasad Notifier using ATL | Operator new[],delete[][^]

          R Offline
          R Offline
          Raghavendra Pise
          wrote on last edited by
          #4

          Hello Prasad, Yes, I am using this setting in my project, Link-->Output-->Entry point symbol-->wWinMainCRTStartup, but getting above errors. I am not sure whether should i use this entry point or some other.If u know plz tell me Raghavendra Pise

          1 Reply Last reply
          0
          • H Hamid Taebi

            I think you asked this question yesterday?did you get your answer


            WhiteSky


            R Offline
            R Offline
            Raghavendra Pise
            wrote on last edited by
            #5

            Ya yesterday i asked same question but didn't get solution, I used thse settings. Link-->Output-->Entry point symbol-->wWinMainCRTStartup, but getting above errors. I am not sure whether should i use this entry point(wWinMainCRTStartup) or some other.If u know plz tell me

            H 1 Reply Last reply
            0
            • R Raghavendra Pise

              Hi Friends, I am new to this discussion. I am facing Linker error while building my project. Error is:Creating library C:\Program Files\Quark\QuarkDDS 4\QuarkDDS\XTension\OptimakerSXT2.lib and object C:\Program Files\Quark\QuarkDDS 4\QuarkDDS\XTension\OptimakerSXT2.exp LIBCD.lib(wwincrt0.obj) : error LNK2001: unresolved external symbol _wWinMain@16 C:\Program Files\Quark\QuarkDDS 4\QuarkDDS\XTension\OptimakerSXT2.xnt : fatal error LNK1120: 1 unresolved externals Error executing link.exe. I have done settings like: 1) c/c++ Tab->Preproccessor->WIN32,_DEBUG,_WINDOWS,_MBCS 2) Link-> Output->wWinMainCRTStartup. Inspite of these settings i am getting Above errors.Anybody knows, please reply me.

              V Offline
              V Offline
              VCSharp007
              wrote on last edited by
              #6

              Why you set 'entry point for UNICODE project' in a non-unicode project ?? We need not explicitly set any entry point sympol for Non-Unicode projects. Or If u intend make ur project UNICODE supportable then plz add 'UNICODE,_UNICODE' in c/c++ Tab->Preproccessor

              R 1 Reply Last reply
              0
              • V VCSharp007

                Why you set 'entry point for UNICODE project' in a non-unicode project ?? We need not explicitly set any entry point sympol for Non-Unicode projects. Or If u intend make ur project UNICODE supportable then plz add 'UNICODE,_UNICODE' in c/c++ Tab->Preproccessor

                R Offline
                R Offline
                Raghavendra Pise
                wrote on last edited by
                #7

                Thanks for ur feedback. If i am remove entry point for my project, still i a getting same errors. Creating library C:\Program Files\Quark\QuarkDDS 4\QuarkDDS\XTension\OptimakerSXT2.lib and object C:\Program Files\Quark\QuarkDDS 4\QuarkDDS\XTension\OptimakerSXT2.exp LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16 C:\Program Files\Quark\QuarkDDS 4\QuarkDDS\XTension\OptimakerSXT2.xnt : fatal error LNK1120: 1 unresolved externals Error executing link.exe. I think i should use some header file to resolve this problem.I already used header file. Is there any header file, i have to include or any setting i want to do?

                1 Reply Last reply
                0
                • R Raghavendra Pise

                  Hi Friends, I am new to this discussion. I am facing Linker error while building my project. Error is:Creating library C:\Program Files\Quark\QuarkDDS 4\QuarkDDS\XTension\OptimakerSXT2.lib and object C:\Program Files\Quark\QuarkDDS 4\QuarkDDS\XTension\OptimakerSXT2.exp LIBCD.lib(wwincrt0.obj) : error LNK2001: unresolved external symbol _wWinMain@16 C:\Program Files\Quark\QuarkDDS 4\QuarkDDS\XTension\OptimakerSXT2.xnt : fatal error LNK1120: 1 unresolved externals Error executing link.exe. I have done settings like: 1) c/c++ Tab->Preproccessor->WIN32,_DEBUG,_WINDOWS,_MBCS 2) Link-> Output->wWinMainCRTStartup. Inspite of these settings i am getting Above errors.Anybody knows, please reply me.

                  L Offline
                  L Offline
                  Lost User
                  wrote on last edited by
                  #8

                  From MSDN: If you are using Unicode and MFC, you will get an unresolved external on _WinMain@16 if you don’t create an entrypoint to wWinMainCRTStartup. Use the /ENTRY option or type this value in the Project Settings dialog box. (To find this option in the development environment, click Settings on the Project menu, then click the Link tab, and click Output in the Category box.) See Unicode Programming Summary. See the following Knowledge Base articles located in the Online Information System for more information. An easy way to reach an article is to copy a "Q" number above, open the Search dialog box from the Help menu and select the Query tab, then paste the number into the first text box and press ENTER. Q125750 "PRB: Error LNK2001: '_WinMain@16': Unresolved External Symbol" Q131204 "PRB: Wrong Project Selection Causes LNK2001 on _WinMain@16" Q100639 "Unicode Support in the Microsoft Foundation Class Library"

                  Truth is the subjection of reality to an individuals perception

                  R 1 Reply Last reply
                  0
                  • L Lost User

                    From MSDN: If you are using Unicode and MFC, you will get an unresolved external on _WinMain@16 if you don’t create an entrypoint to wWinMainCRTStartup. Use the /ENTRY option or type this value in the Project Settings dialog box. (To find this option in the development environment, click Settings on the Project menu, then click the Link tab, and click Output in the Category box.) See Unicode Programming Summary. See the following Knowledge Base articles located in the Online Information System for more information. An easy way to reach an article is to copy a "Q" number above, open the Search dialog box from the Help menu and select the Query tab, then paste the number into the first text box and press ENTER. Q125750 "PRB: Error LNK2001: '_WinMain@16': Unresolved External Symbol" Q131204 "PRB: Wrong Project Selection Causes LNK2001 on _WinMain@16" Q100639 "Unicode Support in the Microsoft Foundation Class Library"

                    Truth is the subjection of reality to an individuals perception

                    R Offline
                    R Offline
                    Raghavendra Pise
                    wrote on last edited by
                    #9

                    Hi, Thnaks for your feedback. Sorry to say this, we are using DLL(BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved)) in our project not main or Winmain. May i know Which entry-point want to use in my project?

                    1 Reply Last reply
                    0
                    • R Raghavendra Pise

                      Ya yesterday i asked same question but didn't get solution, I used thse settings. Link-->Output-->Entry point symbol-->wWinMainCRTStartup, but getting above errors. I am not sure whether should i use this entry point(wWinMainCRTStartup) or some other.If u know plz tell me

                      H Offline
                      H Offline
                      Hamid Taebi
                      wrote on last edited by
                      #10

                      See here[^] maybe its some helpful for you:)


                      WhiteSky


                      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