public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: [Bulk] Re: your (or Stroustrup) chapter.12.3.cpp (and 12.7.2.cpp)can not compile on my ubuntu/linux10.03
       [not found] ` <AANLkTikgRb_yR0dsEVLM_5FPbRDJrHUzRYRnoh0Zzdn8@mail.gmail.com>
@ 2010-11-01  8:46   ` eric
  2010-11-01  8:59     ` Jonathan Wakely
  0 siblings, 1 reply; 2+ messages in thread
From: eric @ 2010-11-01  8:46 UTC (permalink / raw)
  To: C.W. Holeman II, gcc, xorg

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@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@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@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;
}

//------------------------------------------------------------------------------
---------------------------------------------

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Bulk] Re: your (or Stroustrup) chapter.12.3.cpp (and 12.7.2.cpp)can not compile on my ubuntu/linux10.03
  2010-11-01  8:46   ` [Bulk] Re: your (or Stroustrup) chapter.12.3.cpp (and 12.7.2.cpp)can not compile on my ubuntu/linux10.03 eric
@ 2010-11-01  8:59     ` Jonathan Wakely
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Wakely @ 2010-11-01  8:59 UTC (permalink / raw)
  To: fsshl; +Cc: gcc

On 1 November 2010 08:46, eric  wrote:
> should I also post this to X.org and gcc 's mailing list?

No.  This mailing list is not for help using GCC, and your problem is
not caused by GCC.  Please post somewhere else more appropriate, such
as the gcc-help list.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-11-01  8:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1288580314.11049.15.camel@eric-laptop>
     [not found] ` <AANLkTikgRb_yR0dsEVLM_5FPbRDJrHUzRYRnoh0Zzdn8@mail.gmail.com>
2010-11-01  8:46   ` [Bulk] Re: your (or Stroustrup) chapter.12.3.cpp (and 12.7.2.cpp)can not compile on my ubuntu/linux10.03 eric
2010-11-01  8:59     ` Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).