This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to run ddd in XWin?


Ok, you're now in the Cygwin/X territory.  Any questions about Cygwin/X
should be addressed to the cygwin-xfree mailing list (specifically set up
for this topic).  For your convenience, I've redirected this reply to that
list, and set the Reply-To: appropriately.  More below.

On Sun, 11 Jul 2004, Siegfried Heintze wrote:

> OK, I apparently already have that installed. I typed "info XWin" and
> learned about the options. Nothing terribly relevant to ddd here -- did I
> miss something.

Nope.  Why should documentation for a generic X server, XWin, talk about a
particular X application, ddd?

> OK, I type XWin& and "ddd test.exe" and same error.

Which "same error"?  Be specific.  Is it the "can't open display" error?
You need to set the DISPLAY variable properly.  The default value for the
command line above should be ":0" (or ":0.0").  You can set the DISPLAY in
a bash console window, e.g., "export DISPLAY=:0", before invoking ddd.

> Any other ideas?
>  Test.exe is compiled with the "-g" option in g77.
>
> I also tried ddd convex.pl and still got the same error. Ddd debugs perl
> too, correct?

No idea.

> Thanks,
>     Siegfried
>
>
> On Sun, July 11, 2004 6:36 pm, Richard Heintze said:
> > Ah hah! Write a short program called test.c and gcc -g
> > test.c -o test.exe and ddd test.exe and then I see
> >
> > Error: can't open display:
>
> This one's easy. It's almost certainly looking for a running X server,
> of which there almost certainly isn't one.
> I suggest you install the X.org packages, and then start XWin.exe ..
> (It's worth reading the documentation to decide how you want to start it,
> but I found that XWin.exe -multiwindow -emulate3buttons was useful (I
> use emu3buttons because the laptop I use it on only has 2 :( )
>
> > Why does this not work?
> >
> > So I download the insight debugger and tried
> > /cygdrive/c/dev/insight/bin/gdb.exe test.exe
> >
> > This gives the error
> > stat "/cygdrive/c/tmp/test.c" no such file or directory while executing
> >
> > Well that is not true, the file is there! I tried
> > chmod 777 test.c but that did not help. The debugger works, it just cannot
> > load test.c for some reason!
>
> Just ensure that is the correct path to the file? I would be surprised
> if it was /cygdrive/c/tmp ... More likely is
> /cygdrive/c/cygwin/tmp/test.c .
> Does that work?
>
> Chris

HTH,
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]