Git Product home page Git Product logo

freechart's Issues

Compile error

/Src/freechart> make
/Src/freechart/bk-deps g++ -c -o wxfreechart_dll_legend.o -I./include -DWXMAKINGDLL_FREECHART -fPIC -DPIC -I/usr/lib64/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DwxDEBUG_LEVEL=0 -DWXUSINGDLL -D__WXGTK__ -pthread -O2 ./src/legend.cpp
In file included from ./include/wx/marker.h:15:0,
from ./include/wx/dataset.h:21,
from ./include/wx/legend.h:14,
from ./src/legend.cpp:10:
./include/wx/areadraw.h:176:29: error: using typedef-name ‘AreaDrawMap’ after ‘class’
class WXDLLIMPEXP_FREECHART AreaDrawMap;
^
In file included from /usr/include/wx-3.0/wx/wx.h:20:0,
from ./include/wx/wxfreechartdefs.h:20,
from ./include/wx/legend.h:13,
from ./src/legend.cpp:10:
./include/wx/areadraw.h:175:69: note: ‘AreaDrawMap’ has a previous declaration here
WX_DECLARE_HASH_MAP(int, AreaDraw *, wxIntegerHash, wxIntegerEqual, AreaDrawMap);
^
/usr/include/wx-3.0/wx/hashmap.h:42:86: note: in definition of macro ‘_WX_DECLARE_HASH_MAP’
typedef WX_HASH_MAP_NAMESPACE::unordered_map< KEY_T, VALUE_T, HASH_T, KEY_EQ_T > CLASSNAME
^
./include/wx/areadraw.h:175:1: note: in expansion of macro ‘WX_DECLARE_HASH_MAP’
WX_DECLARE_HASH_MAP(int, AreaDraw *, wxIntegerHash, wxIntegerEqual, AreaDrawMap);
^
Makefile:751: recipe for target 'wxfreechart_dll_legend.o' failed

Commenting off line 176 of include/areadraw.h fixes the issue:
//class WXDLLIMPEXP_FREECHART AreaDrawMap;

Should I create a pull request?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.