Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
niclasr opened this issue Feb 5, 2024 · 0 comments
Assignees
Labels

Comments

@niclasr
Copy link
Contributor

niclasr commented Feb 5, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants