early compile error

Help
sjk
2010-08-16
2013-04-09
  • sjk
    sjk
    2010-08-16

    Trying to compile on debian stable - have compile successfully in the past - but now:

    g++ -Wall -pedantic -O2 `fltk-config -cxxflags`   -c -o src/Callback.o src/Callback.cc
    src/Callback.cc: In static member function â:
    src/Callback.cc:86: warning: â is deprecated (declared at /usr/include/FL/fl_ask.H:59)
    src/Callback.cc:86: warning: â is deprecated (declared at /usr/include/FL/fl_ask.H:59)
    g++ -Wall -pedantic -O2 `fltk-config -cxxflags`   -c -o src/CardWidget.o src/CardWidget.cc
    g++ -Wall -pedantic -O2 `fltk-config -cxxflags`   -c -o src/EmbedWindow.o src/EmbedWindow.cc
    src/EmbedWindow.cc: In member function â:
    src/EmbedWindow.cc:332: warning: â is deprecated (declared at /usr/include/FL/fl_ask.H:59)
    src/EmbedWindow.cc:332: warning: â is deprecated (declared at /usr/include/FL/fl_ask.H:59)
    g++ -Wall -pedantic -O2 `fltk-config -cxxflags`   -c -o src/ExtractWindow.o src/ExtractWindow.cc
    src/ExtractWindow.cc: In member function â:
    src/ExtractWindow.cc:157: warning: â is deprecated (declared at /usr/include/FL/fl_ask.H:59)
    src/ExtractWindow.cc:157: warning: â is deprecated (declared at /usr/include/FL/fl_ask.H:59)
    g++ -Wall -pedantic -O2 `fltk-config -cxxflags`   -c -o src/ImgWidget.o src/ImgWidget.cc
    g++ -Wall -pedantic -O2 `fltk-config -cxxflags`   -c -o src/MsgWindow.o src/MsgWindow.cc
    src/MsgWindow.cc: In constructor â:
    src/MsgWindow.cc:53: error: â was not declared in this scope

    ftk ver

    ii  libfltk1.1                        1.1.9-6                        Fast Light Toolkit - shared libraries
    ii  libfltk1.1-dev                    1.1.9-6                        Fast Light Toolkit - development files

    Any help would be appreciated

     
  • Not sure why symbols (function names in this case) wouldn't be printed correctly in your output and I don't have a Debian stable to test with at the moment, however I can reproduce the error and it seems to be caused by a call to the 'exit' function in MsgWindow.cc.

    Adding the #include <cstdlib> directive on top of the file fixes it for me. I'd like to eventually revise the project and upgrade it to newer FLTK libraries, but for now let me know if this lets you progress.