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. QT Example - Compilinig Errors
QtWS25 Last Chance

QT Example - Compilinig Errors

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.1k Views
  • 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.
  • S Offline
    S Offline
    snprrr
    wrote on last edited by
    #1

    When I'm trying to run the following example code

    http://qt-project.org/doc/qt-4.8/network-download.html

    I get the follow compiling errors:
    @E:\Qt\Qt5.0.2\Tools\QtCreator\bin\build-network-Desktop_Qt_5_0_2_MinGW_32bit-Debug\debug\main.o:-1: In function `ZN15DownloadManagerC2Ev':

    E:\Qt\Qt5.0.2\Tools\QtCreator\bin\network\main.cpp:77: multiple definition of `DownloadManager::DownloadManager()'

    E:\Qt\Qt5.0.2\Tools\QtCreator\bin\build-network-Desktop_Qt_5_0_2_MinGW_32bit-Debug\debug\main.o:-1: In function `ZN15DownloadManagerC2Ev':

    E:\Qt\Qt5.0.2\Tools\QtCreator\bin\network\main.cpp:77: multiple@

    I dont think that it is a big issue but I dont get it. Im using QT 5 and I pasted the pro file and the main.cpp into an empty project.

    Kind regards,
    snprr

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      welcome to devnet

      Did you change anything in the .pro file?
      It looks like you are linking at least twice main.obj that is what the error says.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • S Offline
        S Offline
        snprrr
        wrote on last edited by
        #3

        Thank you very much! Seems like i messed up when pasting the .pro file! I did include main twice.
        [quote author="koahnig" date="1371478435"]welcome to devnet

        Did you change anything in the .pro file?
        It looks like you are linking at least twice main.obj that is what the error says. [/quote]

        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