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 » Wed Jul 10, 2019 5:52 am

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: 3866
Joined: Thu Jan 12, 2006 6:23 pm
Location: IoW, UK

Re: wxOVERRIDE compile problem

Post by DavidHart » Wed Jul 10, 2019 12:24 pm

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 » Wed Jul 10, 2019 12:28 pm

Oh, maybe Debian 10 has got wsWidgets ver 3.0.

DavidHart
Site Admin
Site Admin
Posts: 3866
Joined: Thu Jan 12, 2006 6:23 pm
Location: IoW, UK

Re: wxOVERRIDE compile problem

Post by DavidHart » Wed Jul 10, 2019 2:21 pm

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 » Sat Jul 13, 2019 6:51 am

Solved using this reppository:

# wxWidgets 3.1 Packages and Repositories
deb http://repos.codelite.org/wx3.1.2/debian/ buster libs

Post Reply