#1 Compilation fails

closed-fixed
nobody
None
5
2007-02-19
2006-12-22
No

Compilation of extrema-4.1.2 on Slackware 11.0 Linux with gcc-3.4.6 and wxWidgets-2.8.0, gtk+-2.10 fails:

if /bin/sh ../../libtool --mode=compile --tag=CXX i486-slackware-linux-g++ -DPACKAGE_NAME=\"extrema\" -DPACKAGE_TARNAME=\"extrema\" -DPACKAGE_VERSION=\"4.1.2\" -DPACKAGE_STRING=\"extrema\ 4.1.2\" -DPACKAGE_BUGREPORT=\"Joseph\ L.\ Chuma\ chuma@triumf.ca\" -DPACKAGE=\"extrema\" -DVERSION=\"4.1.2\" -DHAVE_DLFCN_H=1 -I. -I. -I../../src -I../../src/Commands -I../../src/Expression -I../../src/Functions -I../../src/Graphics -I../../src/Operators -I../../src/Parsing -I../../src/Utilities -I../../src/Variables -I../../src/wxForms -I/usr/include/libxml2 -I/usr/local/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -D__WXGTK__ -pthread -O2 -MT TextForm.lo -MD -MP -MF ".deps/TextForm.Tpo" -c -o TextForm.lo TextForm.cpp; \ then mv -f ".deps/TextForm.Tpo" ".deps/TextForm.Plo"; else rm -f ".deps/TextForm.Tpo"; exit 1; fi
i486-slackware-linux-g++ -DPACKAGE_NAME=\"extrema\" -DPACKAGE_TARNAME=\"extrema\" -DPACKAGE_VERSION=\"4.1.2\" "-DPACKAGE_STRING=\"extrema 4.1.2\"" "-DPACKAGE_BUGREPORT=\"Joseph L. Chuma chuma@triumf.ca\"" -DPACKAGE=\"extrema\" -DVERSION=\"4.1.2\" -DHAVE_DLFCN_H=1 -I. -I. -I../../src -I../../src/Commands -I../../src/Expression -I../../src/Functions -I../../src/Graphics -I../../src/Operators -I../../src/Parsing -I../../src/Utilities -I../../src/Variables -I../../src/wxForms -I/usr/include/libxml2 -I/usr/local/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -D__WXGTK__ -pthread -O2 -MT TextForm.lo -MD -MP -MF .deps/TextForm.Tpo -c TextForm.cpp -fPIC -DPIC -o .libs/TextForm.o
In file included from TextForm.cpp:51:
FontChooser.h:70: error: ISO C++ forbids declaration of `wxNotebook' with no type
FontChooser.h:70: error: expected `;' before '*' token
FontChooser.h:71: error: ISO C++ forbids declaration of `wxNotebookPage' with no type
FontChooser.h:71: error: expected `;' before '*' token
make[2]: *** [TextForm.lo] Ошибка 1
make[2]: Leaving directory `/usr/local/src/extrema-4.1.2/src/wxForms'
make[1]: *** [all-recursive] Ошибка 1
make[1]: Leaving directory `/usr/local/src/extrema-4.1.2/src'
make: *** [all-recursive] Ошибка 1

Discussion

  • Joe Chuma

    Joe Chuma - 2007-01-18

    Logged In: YES
    user_id=1365928
    Originator: NO

    Add the line

    #include "wx/notebook.h"

    after the other include statements to the file src/wxForms/FontChooser.h
    to make this bug go away

     
  • Joe Chuma

    Joe Chuma - 2007-01-19
    • status: open --> open-fixed
     
  • Joe Chuma

    Joe Chuma - 2007-02-19
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.