delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/09/04/20:58:21

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
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.20010904205515.02339f08@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: Tue, 04 Sep 2001 20:55:53 -0400
To: "Mike Bresnahan" <mbresnah AT visi DOT com>, <cygwin AT cygwin DOT com>
From: "Larry Hall (RFK Partners, Inc)" <lhall AT rfk DOT com>
Subject: Re: -mno-cygwin
In-Reply-To: <EKEJKOHPOIIALFJMKEIGGEJHCGAA.mbresnah@visi.com>
Mime-Version: 1.0

At 10:54 PM 9/4/2001, Mike Bresnahan wrote:
>I am trying to compile and link an application with the Cygwin tools that
>does not depend on cygwin1.dll by passing -mno-cygwin to gcc, however the
>resulting executable is linked to cygwin1.dll.  Below is a log that
>illustrates the problem.
>
>-- begin --
>/usr/local/src/no-cygwin-bug: make
>gcc -c -I/usr/local/src/mingw32/gcc-2.95.2/include/g++-3 -mno-cygwin main.cc
>gcc -I/usr/local/src/mingw32/gcc-2.95.2/include/g++-3 -mno-cygwin
>main.o -L/usr/local/src/mingw32/gcc-2.95.2/lib/gcc-lib/i386-mingw32msvc/2.95
>.2 -lstdc++ -lm  -o main
>/usr/local/src/no-cygwin-bug: cygcheck.exe main.exe
>Found: .\main.exe
>.\main.exe
>   C:\cygwin\bin\cygwin1.dll
>     C:\WINNT\System32\KERNEL32.dll
>       C:\WINNT\System32\NTDLL.DLL
>   C:\WINNT\System32\msvcrt.dll
>
>Use -h to see help about each section
>-- end --
>
>Additionally, the resulting executable when executed goes into a endless
>loop before entering main().
>
>Note that I have downloaded mingw32 and am pointing at its headers and
>libraries, because cygwin is missing the ANSI C++ headers and libraries.
>
>Any help would be highly apprieciated.



AFAIK, -mno-cygwin only applies to C, not C++.



Larry


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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