Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-Id: <4.3.1.2.20010301103740.02a37008@pop.ma.ultranet.com> X-Sender: lhall AT pop DOT ma DOT ultranet DOT com X-Mailer: QUALCOMM Windows Eudora Version 4.3.1 Date: Thu, 01 Mar 2001 10:44:30 -0500 To: robert DOT jan DOT schutten AT philips DOT com, From: "Larry Hall (RFK Partners, Inc)" Subject: RE: How to compile a .LIB with cygwin for use in MS Visual C Cc: In-Reply-To: <0056890022851992000002L922*@MHS> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 02:49 AM 3/1/2001, robert DOT jan DOT schutten AT philips DOT com wrote: >On 02/28/2001 18:08:41 Dautrevaux wrote: > >I'm not sure of the exact procedure to follow, but at least you must use > >-mno-cygwin when compiling this kind of code (and you must check the the > >mingw32 support is properly installed, depending on your cygwin version). > >This was already discussed a number of times on this list so e search of the > >archive should provide the necessary links. > >This I understand, and this is also what I want. I want the final Visual C application >to be independent of the cygwin dll. I have searched through the archives, and >have not found the answer to my question. The answer is just as the responder above noted. Use the -mno-cygwin flag and the result will be your program is not linked with cygwin1.dll. That means you can't rely on any POSIX semantics that are in cygwin1.dll though. An alternative is to go to www.mingw.org and download that compiler toolset. This is gcc for win32 only (again, no POSIX semantics beyond what MS gives you). As a result, you link to the MS C runtime. Cygwin's gcc with -mno-cygwin is based on the Mingw version so usually people with the Cygwin compiler suite just use it with the -mno-cygwin flag rather than keeping both compiler suites. Larry Hall lhall AT rfk DOT com RFK Partners, Inc. http://www.rfk.com 118 Washington Street (508) 893-9779 - RFK Office Holliston, MA 01746 (508) 893-9889 - FAX -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple