Huge Problem with compiling wxFreeChart

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
codeks
Earned a small fee
Earned a small fee
Posts: 10
Joined: Wed Aug 04, 2021 11:47 am

Huge Problem with compiling wxFreeChart

Post by codeks »

I have installed latest wxWidgets 3.1.5 and GTK3 with prefix to a /home folder
and have configured wxFreeChart using

Code: Select all

--with-wxdir=/full/wxWidgets/prefix/path --with-wx-config=/full/wxWidgets/wx-config/path --prefix=/home/prefix/path
when I try to 'make' I get:

Code: Select all

./src/xy/xydynamicdataset.cpp: In member function ‘void XYDynamicSerie::AddXY(const wxRealPointArray&)’:
./src/xy/xydynamicdataset.cpp:99:34: error: expected ‘;’ before ‘if’
   99 |     WX_APPEND_ARRAY(m_data, data)
      |                                  ^
      |                                  ;
  100 | 
  101 |     if (m_dataset != NULL) {
Thanks in advance!!
DavidHart
Site Admin
Site Admin
Posts: 4252
Joined: Thu Jan 12, 2006 6:23 pm
Location: IoW, UK

Re: Huge Problem with compiling wxFreeChart

Post by DavidHart »

Hi,

Does ./src/xy/xydynamicdataset.cpp contain

Code: Select all

#include <wx/dynarray.h>
as that's what https://docs.wxwidgets.org/trunk/classw ... 7edd37a9c7 asks for?

Regards,

David
Post Reply