美文网首页
qt, undefined reference to a fun

qt, undefined reference to a fun

作者: LFBuildMountain | 来源:发表于2018-06-03 20:52 被阅读0次

    qt中,create

    //common.h 
    void test();
    //common.cpp 
    #include "common.h"
    void test(){
     //code
    }
    

    qmake compile the project

    output error:

    undefined reference to test() function
    

    add common.h and common.cpp to .pro file

    相关文章

      网友评论

          本文标题:qt, undefined reference to a fun

          本文链接:https://www.haomeiwen.com/subject/cplssftx.html