Programming and reading.

  • 2 Posts
  • 97 Comments
Joined 3 years ago
cake
Cake day: June 26th, 2023

help-circle



  • First, in your main, you want judt ErrorWindow ErrorWin;. As it is, you’re taking a pointer to a pointer with the & (also it’s not initialized).

    Second, does your MainWindow.hpp know the ErrorWindow? You may have to forward declare it (write class ErrorWindow; at the top, to tell the compiler it exists without saying anything else). If you include the other header files respectively, they include each other, so you get a cycle.