Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. LNK errors
Forum Updated to NodeBB v4.3 + New Features

LNK errors

Scheduled Pinned Locked Moved General and Desktop
6 Posts 3 Posters 1.4k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Coloriez
    wrote on last edited by
    #1

    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)

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Maybe a silly question but does HelpDialog have these two functions correctly implemented ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • C Offline
        C Offline
        Coloriez
        wrote on last edited by
        #3

        Yeah, it does.

        1 Reply Last reply
        0
        • jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          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?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • C Offline
            C Offline
            Coloriez
            wrote on last edited by
            #5

            HelpDialog is defined in a header file.

            jsulmJ 1 Reply Last reply
            0
            • C Coloriez

              HelpDialog is defined in a header file.

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @Coloriez Can you post the header file?
              Did you implement HelpDialog(QWidget *) constructor (with implement I mean: does it have a method body)?

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved