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中,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
网友评论