Results 1 to 3 of 3

Thread: Compile ERROR while integrating QT in C++ project

  1. #1
    Join Date
    Aug 2010
    Posts
    1
    Qt products
    Qt4 Qt Jambi
    Platforms
    Windows

    Default Compile ERROR while integrating QT in C++ project

    I am adding QT code to my C++ project ,i included all the required dll's,but i'm getting the error while compiling.

    Error 1 error LNK2001: unresolved external symbol "public: virtual struct QMetaObject const * __thiscall noma::UI::SplashScreen::metaObject(void)const " (?metaObject@SplashScreen@UI@noma@@UBEPBUQMetaObje ct@@XZ)


    On removal of Q_OBJECT,it executing successfully.

  2. #2
    Join Date
    Jan 2006
    Location
    Napoli, Italy
    Posts
    621
    Thanks
    5
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Compile ERROR while integrating QT in C++ project

    what is the question?
    A camel can go 14 days without drink,
    I can't!!!

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Compile ERROR while integrating QT in C++ project

    You should integrate your C++ project into a Qt project not vice versa. Qt has some requirements when it comes to compilation that are fulfilled automatically if you use qmake for compilation. Without it you have to do additional steps so it's better to let qmake handle your C++ project (which it will happily do) instead of trying to manually compile Qt-based code.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Project suddenly doesn't compile
    By vieraci in forum Qt Programming
    Replies: 16
    Last Post: 7th June 2016, 07:12
  2. help,who could help me to compile qt project
    By derekli in forum Qt Programming
    Replies: 3
    Last Post: 13th May 2014, 15:27
  3. Replies: 7
    Last Post: 28th June 2010, 21:03
  4. Project compile problems
    By MarkoSan in forum Qt Programming
    Replies: 7
    Last Post: 15th October 2009, 12:54
  5. qmake: add to project but do not compile
    By jesse in forum Newbie
    Replies: 2
    Last Post: 8th November 2007, 16:03

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.