LNK errors
-
I get this weird linker error everytime I try to do this:
HelpDialog hDialog; hDialog.setModal(true); hDialog.exec();
mainwindow.obj:-1: error: LNK2019: unresolved external symbol "public: __cdecl HelpDialog::HelpDialog(class QWidget *)" (??0HelpDialog@@QEAA@PEAVQWidget@@@Z) referenced in function "private: void __cdecl MainWindow::on_actionHelp_triggered(void)" (?on_actionHelp_triggered@MainWindow@@AEAAXXZ)
-
Hi,
Maybe a silly question but does HelpDialog have these two functions correctly implemented ?
-
Where is HelpDialog defined?
In a library?
In a *.cpp file?
If it is in a library - do you link your project against this library?
If it is in a *.cpp file - is it included in your project?