Hi,

I get the following error when building a project on a current Debian "testing" system, possibly due to upgrading the host gcc from 7.1 to 7.2, but I'm not 100% sure. I guess ncurses 5.9 is pretty old now!

cd c++ && make DESTDIR="" all
make[2]: Entering directory '/mnt/lindata/work/abbotti/ptxdist/projects/dbpod-socfpga-tmp/platform-dbpod-fastpod/build-host/ncurses-5.9/c++'
compiling cursesf (objects)
In file included from ../c++/cursesw.h:36:0,
                 from ../c++/cursesp.h:39,
                 from ../c++/cursesf.h:39,
                 from ../c++/cursesf.cc:35:
../c++/etip.h:374:20: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
 #define THROWS(s)  throw(s)
                    ^
../c++/cursesw.h:777:50: note: in expansion of macro 'THROWS'
   virtual void   err_handler(const char *) const THROWS(NCursesException);
                                                  ^~~~~~
../c++/etip.h:374:20: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
 #define THROWS(s)  throw(s)
                    ^
../c++/cursesp.h:89:32: note: in expansion of macro 'THROWS'
   void OnError (int err) const THROWS(NCursesPanelException)
                                ^~~~~~
In file included from ../c++/cursesf.h:39:0,
                 from ../c++/cursesf.cc:35:
../c++/cursesp.h: In member function 'T* NCursesUserPanel<T>::UserData() const': ../c++/cursesp.h:256:43: error: no matching function for call to 'NCursesUserPanel<T>::get_user() const'
     return reinterpret_cast<T*>(get_user ());
                                           ^
../c++/cursesp.h:80:9: note: candidate: void* NCursesPanel::get_user() <near match>
   void *get_user()
         ^~~~~~~~
../c++/cursesp.h:80:9: note: passing 'const NCursesUserPanel<T>*' as 'this' argument discards qualifiers
In file included from ../c++/cursesw.h:36:0,
                 from ../c++/cursesp.h:39,
                 from ../c++/cursesf.h:39,
                 from ../c++/cursesf.cc:35:
../c++/cursesf.h: At global scope:
../c++/etip.h:374:20: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
 #define THROWS(s)  throw(s)
                    ^
../c++/cursesf.h:64:38: note: in expansion of macro 'THROWS'
   inline void OnError(int err) const THROWS(NCursesFormException) {
                                      ^~~~~~
../c++/etip.h:374:20: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
 #define THROWS(s)  throw(s)
                    ^
../c++/cursesf.h:112:39: note: in expansion of macro 'THROWS'
   inline void OnError (int err) const THROWS(NCursesFormException) {
                                       ^~~~~~
../c++/etip.h:374:20: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
 #define THROWS(s)  throw(s)
                    ^
../c++/cursesf.h:394:39: note: in expansion of macro 'THROWS'
   inline void OnError (int err) const THROWS(NCursesFormException) {
                                       ^~~~~~
In file included from ../c++/cursesf.cc:35:0:
../c++/cursesf.h: In member function 'T* NCursesUserForm<T>::UserData() const': ../c++/cursesf.h:707:43: error: no matching function for call to 'NCursesUserForm<T>::get_user() const'
     return reinterpret_cast<T*>(get_user ());
                                           ^
../c++/cursesf.h:384:16: note: candidate: void* NCursesForm::get_user() <near match>
   inline void *get_user() {
                ^~~~~~~~
../c++/cursesf.h:384:16: note: passing 'const NCursesUserForm<T>*' as 'this' argument discards qualifiers
In file included from ../c++/cursesw.h:36:0,
                 from ../c++/cursesp.h:39,
                 from ../c++/cursesf.h:39,
                 from ../c++/cursesf.cc:35:
../c++/cursslk.h: At global scope:
../c++/etip.h:374:20: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
 #define THROWS(s)  throw(s)
                    ^
../c++/cursslk.h:120:45: note: in expansion of macro 'THROWS'
   inline void Error (const char* msg) const THROWS(NCursesException) {
                                             ^~~~~~
Makefile:331: recipe for target '../objects/cursesf.o' failed
make[2]: *** [../objects/cursesf.o] Error 1


--
-=( Ian Abbott @ MEV Ltd.    E-mail: <[email protected]> )=-
-=(                          Web: http://www.mev.co.uk/  )=-

_______________________________________________
ptxdist mailing list
[email protected]

Reply via email to