qt, undefined reference to a fun
2018-06-03 本文已影响0人
LFBuildMountain
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