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. ERROR LNK 2005 & fatal error LNK1169

ERROR LNK 2005 & fatal error LNK1169

Scheduled Pinned Locked Moved Unsolved General and Desktop
10 Posts 4 Posters 1.9k Views 2 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
    Rameshguru
    wrote on last edited by
    #1

    ERROR LNK :2005already defined in qhttpnetworkconnectionchannel.obj

    fatal error LNK1169: one or more multiply defined symbols found.

    I install vs 2013 .bt this error is displayed how to solve this

    jsulmJ 1 Reply Last reply
    0
    • R Rameshguru

      ERROR LNK :2005already defined in qhttpnetworkconnectionchannel.obj

      fatal error LNK1169: one or more multiply defined symbols found.

      I install vs 2013 .bt this error is displayed how to solve this

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Rameshguru As the error message states you have multiple definition of a symbol. That means that this symbol is defined in more than one place. Please show the whole error message, because it is not clear which symbol it is.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      R 1 Reply Last reply
      3
      • JohanSoloJ Offline
        JohanSoloJ Offline
        JohanSolo
        wrote on last edited by JohanSolo
        #3

        Most probably you have a function / method defined in a header and it is not inline.

        `They did not know it was impossible, so they did it.'
        -- Mark Twain

        1 Reply Last reply
        2
        • jsulmJ jsulm

          @Rameshguru As the error message states you have multiple definition of a symbol. That means that this symbol is defined in more than one place. Please show the whole error message, because it is not clear which symbol it is.

          R Offline
          R Offline
          Rameshguru
          wrote on last edited by
          #4

          @jsulm

          moc_qnetworksession_p.cpp
          moc_qbearerplugin_p.cpp
          moc_qdnslookup_p.cpp
          Generating Code...
          Compiling...
          moc_qhostinfo_p.cpp
          moc_qabstractsocketengine_p.cpp
          moc_qhttpsocketengine_p.cpp
          moc_qsocks5socketengine_p.cpp
          moc_qtcpsocket.cpp
          moc_qudpsocket.cpp
          moc_qnativesocketengine_p.cpp
          Generating Code...
          link /NOLOGO /DYNAMICBASE /NXCOMPAT /BASE:0x64000000 /DEBUG /DLL /SUBSYSTEM:WINDOWS /VERSION:5.8 /MANIFEST:embed /OUT:....\lib\Qt5Networkd.dll @C:\Users\Pondy\AppData\Local\Temp\nm8BF0.tmp
          qhttp2protocolhandler.obj : error LNK2005: "private: static int const QHttp2ProtocolHandler::sessionMaxRecvWindowSize" (?sessionMaxRecvWindowSize@QHttp2ProtocolHandler@@0HB) already defined in qhttpnetworkconnectionchannel.obj
          qhttp2protocolhandler.obj : error LNK2005: "private: static int const QHttp2ProtocolHandler::streamInitialRecvWindowSize" (?streamInitialRecvWindowSize@QHttp2ProtocolHandler@@0HB) already defined in qhttpnetworkconnectionchannel.obj
          qhttp2protocolhandler.obj : error LNK2005: "private: static unsigned int const QHttp2ProtocolHandler::maxAcceptableTableSize" (?maxAcceptableTableSize@QHttp2ProtocolHandler@@0IB) already defined in qhttpnetworkconnectionchannel.obj
          Creating library ....\lib\Qt5Networkd.lib and object ....\lib\Qt5Networkd.exp
          ....\lib\Qt5Networkd.dll : fatal error LNK1169: one or more multiply defined symbols found
          NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\amd64\link.EXE"' : return code '0x491'
          Stop.
          NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'
          Stop.
          NMAKE : fatal error U1077: 'cd' : return code '0x2'
          Stop.
          NMAKE : fatal error U1077: 'cd' : return code '0x2'
          Stop.
          NMAKE : fatal error U1077: 'cd' : return code '0x2'

          tis is the error

          jsulmJ 1 Reply Last reply
          0
          • JohanSoloJ Offline
            JohanSoloJ Offline
            JohanSolo
            wrote on last edited by JohanSolo
            #5

            As I told in my previous post, look how and where you did define QHttp2ProtocolHandler::sessionMaxRecvWindowSize and QHttp2ProtocolHandler::sessionMaxRecvWindowSize: I doubt they are defined in QHttpNetworkConnectionChannel.cpp.
            My bad, I didn't realise you're actually compiling Qt. I guess you've messed up with the configuration.

            `They did not know it was impossible, so they did it.'
            -- Mark Twain

            1 Reply Last reply
            1
            • R Rameshguru

              @jsulm

              moc_qnetworksession_p.cpp
              moc_qbearerplugin_p.cpp
              moc_qdnslookup_p.cpp
              Generating Code...
              Compiling...
              moc_qhostinfo_p.cpp
              moc_qabstractsocketengine_p.cpp
              moc_qhttpsocketengine_p.cpp
              moc_qsocks5socketengine_p.cpp
              moc_qtcpsocket.cpp
              moc_qudpsocket.cpp
              moc_qnativesocketengine_p.cpp
              Generating Code...
              link /NOLOGO /DYNAMICBASE /NXCOMPAT /BASE:0x64000000 /DEBUG /DLL /SUBSYSTEM:WINDOWS /VERSION:5.8 /MANIFEST:embed /OUT:....\lib\Qt5Networkd.dll @C:\Users\Pondy\AppData\Local\Temp\nm8BF0.tmp
              qhttp2protocolhandler.obj : error LNK2005: "private: static int const QHttp2ProtocolHandler::sessionMaxRecvWindowSize" (?sessionMaxRecvWindowSize@QHttp2ProtocolHandler@@0HB) already defined in qhttpnetworkconnectionchannel.obj
              qhttp2protocolhandler.obj : error LNK2005: "private: static int const QHttp2ProtocolHandler::streamInitialRecvWindowSize" (?streamInitialRecvWindowSize@QHttp2ProtocolHandler@@0HB) already defined in qhttpnetworkconnectionchannel.obj
              qhttp2protocolhandler.obj : error LNK2005: "private: static unsigned int const QHttp2ProtocolHandler::maxAcceptableTableSize" (?maxAcceptableTableSize@QHttp2ProtocolHandler@@0IB) already defined in qhttpnetworkconnectionchannel.obj
              Creating library ....\lib\Qt5Networkd.lib and object ....\lib\Qt5Networkd.exp
              ....\lib\Qt5Networkd.dll : fatal error LNK1169: one or more multiply defined symbols found
              NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\amd64\link.EXE"' : return code '0x491'
              Stop.
              NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'
              Stop.
              NMAKE : fatal error U1077: 'cd' : return code '0x2'
              Stop.
              NMAKE : fatal error U1077: 'cd' : return code '0x2'
              Stop.
              NMAKE : fatal error U1077: 'cd' : return code '0x2'

              tis is the error

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @Rameshguru Are you building Qt?

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              R 1 Reply Last reply
              0
              • R Offline
                R Offline
                Rameshguru
                wrote on last edited by
                #7

                @JohanSolo sir i install qt during compilation how to find and change this

                1 Reply Last reply
                0
                • jsulmJ jsulm

                  @Rameshguru Are you building Qt?

                  R Offline
                  R Offline
                  Rameshguru
                  wrote on last edited by
                  #8

                  @jsulm yes sir

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    Hi,

                    What exact version of Qt 5.8 are you building ?
                    Do you really need to do that with VS2013 ?
                    What parameters did you pass to configure ?

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    0
                    • R Offline
                      R Offline
                      Rameshguru
                      wrote on last edited by
                      #10

                      configure -release -confirm-license -nomake examples -nomake tests -skip qtwebkit-examples -opensource -icu -I C:\icu\include -L C:\icu\lib64 -opengl dynamic

                      i have pass this comment

                      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