delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/05/05/01:28:53

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=BAYES_00,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <49FFC04E.7010601@gmail.com>
References: <c342c1150905041957q448e21f5nffbd6200666425ab AT mail DOT gmail DOT com> <49FFC04E DOT 7010601 AT gmail DOT com>
Date: Tue, 5 May 2009 17:28:31 +1200
Message-ID: <c342c1150905042228g635c19f6x598692b00a30287b@mail.gmail.com>
Subject: Re: problems using Xlib.h/Xwindows.h/unistd.h and win32api under gcc-4
From: Chris LeBlanc <crleblanc AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Hi Dave,

Thanks for the description of the problem, and the workaround.  Our
code is pretty complicated at points, so it might be challenging to be
sure of the include order, but I'll try.

The other suggestion I saw from Christopher Faylor was to try Cygwin
commercial support.  This was actually the first major problem I've
had with Cygwin, so I haven't had to use it before and didn't even
think of it.  I'll try contacting them tomorrow, and possibly get a
fix for the strange looking defines in Xwindows.h, so the order of
includes shouldn't matter.  Personally, I'd be happy with sleep()
being defined in unistd.h, and Sleep() defined in Windows.h, and
keeping the two separate.

Thanks again for your help,
Chris

--
Chris LeBlanc
Claritas Development
GNS Science
Lower Hutt, New Zealand
Web: www.globeclaritas.com

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019