delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/04/11/11:15:34

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Date: Tue, 11 Apr 2000 16:28:14 +0200 (CEST)
From: peter karlsson <peter AT softwolves DOT pp DOT se>
To: cygwin AT sourceware DOT cygnus DOT com
cc: "Larry Hall (RFK Partners, Inc)" <lhall AT rfk DOT com>
Subject: Re: Porting OS/2 EMX __findfirst / __findnext
In-Reply-To: <4.3.1.2.20000411100456.00d7c9d0@pop.ma.ultranet.com>
Message-ID: <Pine.LNX.4.21.0004111624330.11396-100000@ds9.cixit.se>
X-Warning: Junk / bulk email will be reported
X-Rating: This message is not to be eaten by humans
Organization: /universe/earth/europe/norway/oslo
MIME-Version: 1.0

Larry Hall:

> If you're using the Cygwin compiler (and not the Mingw one), you can't just
> list crtdll as a library.  You'll be mixing the MS C RT with the Cygwin one
> and that will surely crash.  If you use the Mingw compiler, you don't need
> to specify the C RT either, since you'll get one of the MS ones by default.

I am using CygWin B20. I wasn't aware that there was something like a "Mingw
compiler", since the only reference to Mingw that I have seen is the header
files and the mingw32 library included with CygWin B20...

> Since you're not trying to port a UNIX app, I'd suggest using Mingw so that
> you don't pull in the Cygwin DLL and the overhead that goes with it.  See
> Mumit Kahn's web pages for more information on the differences between the
> Cygwin compiler, the Mingw compiler, and how to build things with either/
> both.

Where can I get this Mingw?

> Alternatively, you can just use the Cygwin compiler and use _findfirst() 
> and _findnext() (or its Win32 equivalents) and add the appropriate prototype
> (if its not in the header files already).  Obviously, you can use Win32 calls
> directly....

As I said, there are prototypes in mingw32/dir.h, but the program refuses to
link if I call the functions prototyped there. If I grep for _findfirst, I
find it in the libmingw32 file, but it won't link even with that one.

And for using Win32 calls, from what I figured from the FAQ, I need to write
-mwindows to do that, and that will turn the program into a GUI application,
which I do not want...?

-- 
\\//
peter - http://www.softwolves.pp.se/



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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