wxOVERRIDE compile problem

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
mrdebug
Earned some good credits
Earned some good credits
Posts: 131
Joined: Mon Jul 17, 2006 4:57 pm

wxOVERRIDE compile problem

Post by mrdebug »

Hi.
After having formatted my pc and installed Debian 10 now I trying to compile my wxWidgets project.
So the project uses wxFreeChart. Trying to compile wxFreeChart I obtain this error:

Code: Select all

./include/wx/axis/axis.h:410:33: error: ‘wxOVERRIDE’ does not name a type; did you mean ‘wxEVT_IDLE’?
     virtual bool UpdateBounds() wxOVERRIDE;
                                 ^~~~~~~~~~
                                 wxEVT_IDLE
Have I forget to install some package?
Are you using the standard Debian wxWidgets packages or are you using a particular wxWidgets repository?
DavidHart
Site Admin
Site Admin
Posts: 4252
Joined: Thu Jan 12, 2006 6:23 pm
Location: IoW, UK

Re: wxOVERRIDE compile problem

Post by DavidHart »

Hi,
Are you using the standard Debian wxWidgets packages or are you using a particular wxWidgets repository?
Are you asking yourself that question?

Perhaps you should. wxOverride is new in wx3.1 so if you are building with <wx3.1 you'll need to #define it yourself.

Regards,

David
mrdebug
Earned some good credits
Earned some good credits
Posts: 131
Joined: Mon Jul 17, 2006 4:57 pm

Re: wxOVERRIDE compile problem

Post by mrdebug »

Oh, maybe Debian 10 has got wsWidgets ver 3.0.
DavidHart
Site Admin
Site Admin
Posts: 4252
Joined: Thu Jan 12, 2006 6:23 pm
Location: IoW, UK

Re: wxOVERRIDE compile problem

Post by DavidHart »

Oh, maybe Debian 10 has got wxWidgets ver 3.0.
Why not check? In a terminal do:
wx-config --version
mrdebug
Earned some good credits
Earned some good credits
Posts: 131
Joined: Mon Jul 17, 2006 4:57 pm

Re: wxOVERRIDE compile problem

Post by mrdebug »

Solved using this reppository:

# wxWidgets 3.1 Packages and Repositories
deb http://repos.codelite.org/wx3.1.2/debian/ buster libs
EnriqueDavis
In need of some credit
In need of some credit
Posts: 1
Joined: Sat Nov 12, 2022 10:43 pm

Re: wxOVERRIDE compile problem

Post by EnriqueDavis »

Para todos los ejemplos, incluyendo "minimal.cpp" tenía ERROR al compilar con wxWidgets 3.0 tipo "error: expected ‘;’ at end of member declaration virtual bool OnInit() wxOVERRIDE". Para actualizar a versión 3.1.2 usé lo indicado en https://docs.wxwidgets.org/3.1.5/overview_install.html :
sudo apt-get install libwxgtk3.1-dev
tras lo cual he podido compilar y correr sin problemas los ejemplos "minimal.cpp" y "calendar.cpp".
Linux 5.10.0-19-amd64 #1 SMP Debian 5.10.149-2 (2022-10-21) x86_64 GNU/Linux.

DeepL translation:
For all examples, including "minimal.cpp" I had ERROR when compiling with wxWidgets 3.0 type "error: expected ';' at end of member declaration virtual bool declaration OnInit() wxOVERRIDE". To upgrade to version 3.1.2 I used the following at https://docs.wxwidgets.org/3.1.5/overview_install.html :
sudo apt-get install libwxgtk3.1-dev
after which I was able to compile and run the "minimal.cpp" and "calendar.cpp" examples without problems.
Linux 5.10.0-19-amd64 #1 SMP Debian 5.10.149-2 (2022-10-21) x86_64 GNU/Linux.

Translated with www.DeepL.com/Translator (free version)
Last edited by doublemax on Sat Nov 12, 2022 11:33 pm, edited 1 time in total.
Reason: added english translation
Post Reply