Results 1 to 3 of 3

Thread: LNK2019 error using multiple source files

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,332
    Qt products
    Qt5
    Platforms
    Windows
    Thanks
    317
    Thanked 871 Times in 858 Posts

    Default Re: LNK2019 error using multiple source files

    Did you run qmake again after changing your .pro file to add the hello.* entries?
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

  2. #2
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanked 86 Times in 81 Posts

    Default Re: LNK2019 error using multiple source files

    You define your class Hello a second time in hello.cpp

  3. The following user says thank you to ChristianEhrlicher for this useful post:

    d_stranz (7th December 2019)

Similar Threads

  1. Replies: 12
    Last Post: 1st August 2014, 00:45
  2. Compilation Error LNK2019 on QTest::qSleep
    By chiaminhsu in forum Qt Programming
    Replies: 3
    Last Post: 1st February 2013, 03:21
  3. Compilation Error LNK2019
    By Afandi in forum Newbie
    Replies: 3
    Last Post: 23rd December 2012, 15:14
  4. Multiple source files per ui
    By squidge in forum Qt Programming
    Replies: 2
    Last Post: 14th October 2009, 17:32
  5. Error: Using Multiple files
    By 3nc31 in forum Qt Programming
    Replies: 1
    Last Post: 22nd November 2007, 09:23

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.