eranif / codelite

A multi purpose IDE specialized in C/C++/Rust/Python/PHP and Node.js. Written in C++
https://codelite.org
GNU General Public License v2.0
2.09k stars 448 forks source link

[Bug]: Wxcrafter generates code with wxFrame in it without adding #include <wx/frame.h> #3310

Open niclasr opened 5 months ago

niclasr commented 5 months ago

What happened?

Plugin/DiffUI,h includes a class that inherits from wxFrame but it does not include wx/frame.h . This causes a build break when PCH is not used. Since the file is autogenerated from DiffUI.wxcp I draw the conclusion that wxcrafter has a bug since it generates code like this.

Version

Self compiled

Operating system

Linux

Steps to reproduce

Build codelite by adding -DCMAKE_DISABLE_PRECOMPILE_HEADERS=ON to the cmake command line.

Relevant log output

In file included from ../codelite/Plugin/DiffFoldersFrame.h:4:0,
                 from ../codelite/Plugin/DiffFoldersFrame.cpp:1:
../codelite/Plugin/DiffUI.h:67:35: error: invalid use of incomplete type 'class wxFrame'
 class DiffFoldersBaseDlg : public wxFrame