Compile ERROR while integrating into 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. help me please.



  • HI,

    build Qt Applications requires some steps such as:

    • invoke UI compiler;
    • invoke Meta Object Complier
      and so on.

    To build Qt applications I suggest you to use qmake or CMake.
    Using theese tools you can easly integrate your no Qt code.

    To Build Qt applications with standard Makefile requires an in-depth knowlegde of Qt mechanism


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.