Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. What may be the cause of the following error while building the code?
Forum Updated to NodeBB v4.3 + New Features

What may be the cause of the following error while building the code?

Scheduled Pinned Locked Moved General and Desktop
10 Posts 3 Posters 6.5k 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.
  • P Offline
    P Offline
    pratik041
    wrote on last edited by
    #1

    unresolved externals: debug/file.exe
    File not found debug/file.exe
    how can i fix this issue?

    Pratik Agrawal

    1 Reply Last reply
    0
    • A Offline
      A Offline
      AcerExtensa
      wrote on last edited by
      #2

      Post the whole log here. With strings you've posted I can say what where is some unresolved external dependencies, to fix you need to resolve them ;)

      God is Real unless explicitly declared as Integer.

      1 Reply Last reply
      0
      • P Offline
        P Offline
        pratik041
        wrote on last edited by
        #3

        [quote author="AcerExtensa" date="1329468141"]Post the whole log here. With strings you've posted I can say what where is some unresolved external dependencies, to fix you need to resolve them ;) [/quote]
        By log did you mean the whole error message.

        Pratik Agrawal

        1 Reply Last reply
        0
        • A Offline
          A Offline
          AcerExtensa
          wrote on last edited by
          #4

          when you compile your project compiler shows you this error, right? I need the whole error, not just last lines...

          God is Real unless explicitly declared as Integer.

          1 Reply Last reply
          0
          • P Offline
            P Offline
            pratik041
            wrote on last edited by
            #5

            [quote author="AcerExtensa" date="1329469222"]when you compile your project compiler shows you this error, right? I need the whole error, not just last lines...[/quote]
            compile output:
            @Running build steps for project ofi_vc_gui_video_monet...
            Configuration unchanged, skipping qmake step.
            Starting: "C:\QtSDK\QtCreator\bin\jom.exe"
            cd ofi_vc_gui_panel\ && C:\QtSDK\QtCreator\bin\jom.exe -nologo -j 2 -f Makefile
            C:\QtSDK\QtCreator\bin\jom.exe -nologo -j 2 -f Makefile.Debug
            cd ofi_vc_gui_slider\ && C:\QtSDK\QtCreator\bin\jom.exe -nologo -j 2 -f Makefile
            C:\QtSDK\QtCreator\bin\jom.exe -nologo -j 2 -f Makefile.Debug
            link /LIBPATH:"c:\QtSDK\Desktop\Qt\4.7.3\msvc2008\lib" /NOLOGO /DEBUG /MANIFEST /MANIFESTFILE:"debug\ofi_vc_gui_slider.intermediate.manifest" /SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='' processorArchitecture=''" /OUT:debug\ofi_vc_gui_slider.exe @C:\DOCUME~1\PRATIK~1\LOCALS~1\Temp\ofi_vc_gui_slider.exe.3744.0.jom
            qtmaind.lib(qtmain_win.obj) : error LNK2019: unresolved external symbol _main referenced in function _WinMain@16
            debug\ofi_vc_gui_slider.exe : fatal error LNK1120: 1 unresolved externals

            jom 1.0.4 - empower your cores

            command failed with exit code 1120
            command failed with exit code 2
            command failed with exit code 2
            The process "C:\QtSDK\QtCreator\bin\jom.exe" exited with code 2.
            Error while building project ofi_vc_gui_video_monet (target: Desktop)
            When executing build step 'Make'@

            Pratik Agrawal

            1 Reply Last reply
            0
            • A Offline
              A Offline
              AcerExtensa
              wrote on last edited by
              #6

              Look like where is conflict between definitions of main... Do you use any libraries other than Qt's?

              God is Real unless explicitly declared as Integer.

              1 Reply Last reply
              0
              • A Offline
                A Offline
                AcerExtensa
                wrote on last edited by
                #7

                and you must use "main" as start point not windows equivalent like WinMain, wmain etc...

                God is Real unless explicitly declared as Integer.

                1 Reply Last reply
                0
                • P Offline
                  P Offline
                  pratik041
                  wrote on last edited by
                  #8

                  [quote author="AcerExtensa" date="1329470159"]Look like where is conflict between definitions of main... Do you use any libraries other than Qt's?[/quote]

                  no i am not using any other library

                  Pratik Agrawal

                  1 Reply Last reply
                  0
                  • P Offline
                    P Offline
                    pratik041
                    wrote on last edited by
                    #9

                    [quote author="AcerExtensa" date="1329470434"]and you must use "main" as start point not windows equivalent like WinMain, wmain etc...[/quote]

                    actually i was trying to make various subproject with one main function.

                    Pratik Agrawal

                    1 Reply Last reply
                    0
                    • L Offline
                      L Offline
                      lgeyer
                      wrote on last edited by
                      #10

                      Make sure you projects not containing a main function are using a lib template, not app.

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved