This is the mail archive of the cygwin-xfree@sources.redhat.com 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]

RE: questions on DISPLAY and libX11.a


Did you try?

SET DISPLAY=127.0.0.1:0.0 (from a DOS Shell)

or export DISPLAY=127.0.0.1:0.0 (from a bash shell if you are starting from
a bash shell).

However, startxwin.bat, should set display for you?  Are you sure X-server
is starting and you are getting an X-desktop? If not, xterm will not
display.

Unfortunately no, you cannot link to libX11.a using MSVC.  It is a gcc
library for Cygwin.  If you are interested for libraries for MSVC, you can
check out http://win32-xfree.sourceforge.net.  Unfortunately,
sourceforge.net is getting lousy.  They used to be well organized but now
since last 2 months, my several requests to reset the CVS so I can replace
X11R6.4 code with X11R6.5.1 code had gone un-answered.  I might send them a
couple of more reminders.  In case of no response I would call the project
"DEAD" and replace the URL with a "DEAD PROJECT" banner.  In the mean time
you could grab the X11R6.4 libs for MSVC if you wish.

Suhaib 

-----Original Message-----
From: Alan Wong
To: cygwin-xfree@sources.redhat.com
Sent: 11/8/2000 7:32 PM
Subject: questions on DISPLAY and libX11.a

Question 1:

Hi, I'm using Windows 2000 Server os and have been trying to correctly
set
the DISPLAY environment
variable, but not matter what I do, things like xterm.exe will complain
can't open display: blah blah

so i've tried making the DISPLAY environment variable:
myipaddress:0.0
myipaddress:0
:0
:0.0
host name:0.0
host name:0

I am unsure if the problem is because of the DISPLAY variable being
incorrectly set of if Win2k has preventative security issues.
I've run ipconfig.exe /all and get: (for security purposes, I've put x's
in
place of the actual numbers and changed names)

Windows 2000 IP Configuration

        Host Name . . . . . . . . . . . . : cowpc
        Primary DNS Suffix  . . . . . . . :
        Node Type . . . . . . . . . . . . : Hybrid
        IP Routing Enabled. . . . . . . . : No
        WINS Proxy Enabled. . . . . . . . : No
        DNS Suffix Search List. . . . . . : somecompany.com
                                            somecompany2.com

Ethernet adapter Local Area Connection 2:

        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : 3Com Fast EtherLink XL PCI
Server Adapter (3C9
80-TX)
        Physical Address. . . . . . . . . : 00-50-04-24-F6-70
        DHCP Enabled. . . . . . . . . . . : No
        IP Address. . . . . . . . . . . . : xx.x.xxx.xx
        Subnet Mask . . . . . . . . . . . : 255.255.0.0
        Default Gateway . . . . . . . . . : xx.x.x.x
        DNS Servers . . . . . . . . . . . : xxx.xxx.xx.x
                                            xxx.xxx.xx.x

Ethernet adapter Local Area Connection:

        Media State . . . . . . . . . . . : Cable Disconnected
        Description . . . . . . . . . . . : 3Com EtherLink III ISA
(3C509b-TPO)
        Physical Address. . . . . . . . . : 00-60-97-BF-54-54

Can somebody help me?

--------------------------------------------
Question 2:

Also, for libX11.a, can it be linked with the Microsoft C++ 6.0 compiler
or
was it only made for g++?
If I try to do it with the Microsoft compiler, I get:

libX11.a(ds00367.o) : warning LNK4078: multiple ".text" sections found
with
different attributes (E0000020)
libX11.a(ds00367.o) : warning LNK4078: multiple ".bss" sections found
with
different attributes (C0000000)

and it gets an access violation before even getting into the main()
function at all if I had code that makes
calls to fundamental functions such as XFlush or XOpenDisplay in an
include
somewhere.


-Alan Wong - Software Engineer
Sony Computer Entertainment America
10075 Barnes Canyon Road
San Diego, CA 92121-2723
(858) 824-5883
(858) 824-5878 - FAX

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