[Bulk] Re: your (or Stroustrup) chapter.12.3.cpp (and 12.7.2.cpp)can not compile on my ubuntu/linux10.03
eric
fsshl at att.net
Mon Nov 1 01:46:47 PDT 2010
On Sun, 2010-10-31 at 21:48 -0700, C.W. Holeman II wrote:
> You might try:
>
> http://groups.google.com/group/ppp-public?pli=1
>
> --
> C.W.Holeman II | cwhii at JulianLocals.com | http://JulianLocals.com/cwhii
> To only a fraction of the human race does God give the privilege of
> earning one's bread doing what one would have gladly pursued free, for
> passion. I am very thankful. The Mythical Man-Month Epilogue/F.P.Brooks
>
>
>
----------------------------
dear Holeman:
I follow your advice read that mailing list (or newsgroup) article,
and download fltk-1.3.x-r7769
re autoconf
./configure
make
sudo make install
then recompile
--------------------
eric at eric-laptop:~/BStrou/usingC++4/code/Chapter12$ g++ -Wno-deprecated
chapter.12.7.2.cpp -lfltk
In file included from chapter.12.7.2.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
eric at eric-laptop:~/BStrou/usingC++4/code/Chapter12$
------------------------------------------------------
should I also post this to X.org and gcc 's mailing list?
-------------
this is code of chapter.12.7.2.cpp(same as that newgroup's Drill.cpp)
again my compiler is not MS visual c++, it is gnu gcc 4.4.3 on linux
plz help
//------------------------------------------------------------------------------
int main ()
try
{
Point tl(100,100); // top-left corner of our window
Simple_window win(tl,600,400,"Canvas");
// screen coordinate tl for top-left corner
// window size(600*400)
// title: Canvas
win.wait_for_button(); // Display!
}
catch(exception& e) {
// some error reporting
return 1;
}
catch(...) {
// some more error reporting
return 2;
}
//------------------------------------------------------------------------------
---------------------------------------------
More information about the xorg
mailing list