[SOLVED] show new window
-
Hi all!
I'm trying to compile my project, i'm using qt, pcl and i'm compiling with cmake and make.I've created a new dialog window and i've just added these lines to show a new window:
@
#include "dialogsave.h"[...]
DialogSave *d = new DialogSave();
d->show();
@But i get this error:
bq.
Undefined symbols for architecture x86_64:
"DialogSave::DialogSave(QWidget*)", referenced from:
MainWindow::save() in mainwindow.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [ium-qt] Error 1
make[1]: *** [CMakeFiles/ium-qt.dir/all] Error 2
make: *** [all] Error 2I use Mac OS Mavericks.
Do you know how to solve this problem? -
Solution:
I had to add the files: .cpp, .h and .ui to CMakeLists.txt