cmake - undefined symbols error in c++, while the header file exists -
sorry if i'm asking dumb question, i've been stuck on 1 quite time now. so, i'm trying compile program using cmake, calls functions videosource.cpp file, corresponding videosource.h file.
the compiler finds file, when linking makes error:
undefined symbols: "videosourcefactory::construct()", referenced from: _main in main.cpp.o
however, in videosource.h, function defined, as:
class videosourcefactory { public: videosourcefactory(); ...}
does have idea can causing kind of errors happen??
thanks in advance!
videosource.cpp file must added files list, main.cpp.
Comments
Post a Comment