delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/02/20/19:57:03

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <47BCCC17.2090304@pacific.net.sg>
Date: Thu, 21 Feb 2008 08:55:51 +0800
From: Erich Dollansky <oceanare AT pacific DOT net DOT sg>
User-Agent: Thunderbird 2.0.0.6 (X11/20070826)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Building C++ program with QT under cygwin
References: <95455e980802201631t62ff6b6pd8074e93d40fa7a7 AT mail DOT gmail DOT com>
In-Reply-To: <95455e980802201631t62ff6b6pd8074e93d40fa7a7@mail.gmail.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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,

one thing at a time.

hce wrote:
> 
> I am new to cygwin. I've just installed cygwin for building my C++

I see Cygwin as an emulator. Your program will see Linux but not 
Windows. But you still can call Windows directly.

> and the C++ program was built using macro #ifdef WIN32 for the code of
> select(), read() and write() system calls. My understand is that I can
> use all linux system calls under cygwin, should I remove all #ifdef
> WIN32 in the program and compile with a parameter -unix rather than
> win32?

Do not delete those things. Never ever even think of deleting them.
> 
> The major issue is the QT package. In linux, I installed a QT package
> for linux and called the QT gmake to generate a Makefile. On window
> the QT was installed for window and compiled under window environment.
> I have got errors when using window QT to generate Makefile under
> cygwin. How should I use the QT under cygwin? Should I download a unix
> version QT and build the QT using unix macro under cygwin, or should I
> still using window QT under cygwin?
> 
You must install QT inside Cygwin if you want to make full use of it.

I have no idea if this will work.

In theory you should be able to use the Windows version. This will make 
your program even more weird as it itself will behave like a Linux 
program but the libraries are then a mix of Windows and Linux.

Try to stick either with Cygwin or move to Windows.

Erich

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