/usr/include/c++/4.4/backward/backward_warning.h:28:2: warning:
#warning This file includes at least one deprecated or antiquated
header which may be removed without further notice at a future date.
Please use a non-deprecated interface with equivalent functionality
instead. For a listing of replacement headers and interfaces, consult
the  file  backward_warning.h.  To  disable  this  warning  use
-Wno-deprecated.
In file included from Simple_window.cpp:7:
Simple_window.h:17: error: reference to ‘Window’ is ambiguous
/usr/include/X11/X.h:96: error: candidates are: typedef XID Window
Window.h:26: error:                 class Graph_lib::Window
Simple_window.h:17: error: reference to ‘Window’ is ambiguous
/usr/include/X11/X.h:96: error: candidates are: typedef XID Window
Window.h:26: error:                 class Graph_lib::Window
Simple_window.cpp: In constructor
‘Simple_window::Simple_window(Point, int, int, const String&)’:
Simple_window.cpp:12: error: reference to ‘Window’ is ambiguous
/usr/include/X11/X.h:96: error: candidates are: typedef XID Window
Window.h:26: error:                 class Graph_lib::Window
Simple_window.cpp:12: error: class ‘Simple_window’ does not have any
field named ‘Window’
Simple_window.cpp:16: error: ‘attach’ was not declared in this scope
Simple_window.cpp:      In      member      function      ‘bool
Simple_window::wait_for_button()’:
Simple_window.cpp:26: error: ‘show’ was not declared in this scope
Simple_window.cpp: In member function ‘void Simple_window::next()’:
Simple_window.cpp:53: error: ‘hide’ was not declared in this scope
# cc1plus 0.54 0.04
make[1]: *** [Simple_window.o] Error 1
rm Graph.o GUI.o
make[1]: Leaving directory `/home/eric/BStrou/usingC++4/code/GUI'
make: *** [../GUI/libbookgui.a] Error 2
e...@eric-laptop:~/BStrou/usingC++4/code/Chapter12$
-------------------------------------------------------------------------link 
fltk with example program of book by Stroustrup------
I am using 4.4.3, could anyone have experience to use different(newer) version 
of gcc/g++ so it can distinquish different useage of same variable, i.e. 
Window, in my case without response by compile time error?

thans your time and effort a lot in advance, Eric


_____________________________________________________________
Luxmail.com is spam free. However, we do not throw your important emails into 
spam box like other defective email systems.

Reply via email to