delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/02/21/07:23:03

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
X-Apparently-From: <earnie?boyd AT yahoo DOT com>
Message-ID: <3A93B2C9.DECEA92B@yahoo.com>
Date: Wed, 21 Feb 2001 07:21:29 -0500
From: Earnie Boyd <earnie_boyd AT yahoo DOT com>
Reply-To: Earnie Boyd <cygwin AT cygwin DOT com>
X-Mailer: Mozilla 4.76 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Patrick Lightbody <plightbo AT cisco DOT com>
CC: cygwin AT cygwin DOT com
Subject: Re: -mno-cygwin symlinks... (Was Simple hello world in C++)
References: <5 DOT 0 DOT 2 DOT 1 DOT 0 DOT 20010220212600 DOT 00a118b0 AT ce-nfs-1 DOT cisco DOT com>

Patrick Lightbody wrote:
> 
> OK, I just kept making symlinks, it turns i only needed to do:
> /usr/include/g++-3/_G_config.h --> ../_G_config.h
> /usr/include/g++-3/sys --> ../sys
> 

You can't do that.

> So now I can compile as the following shows:
> 
> [plightbo AT raptor c]$ gcc test.cpp -lstdc++
> [plightbo AT raptor c]$ cygcheck.exe a.exe
> Found: .\a.exe
> .\a.exe
>    C:\cygwin\bin\cygwin1.dll
>      C:\WINDOWS\SYSTEM\KERNEL32.dll
> 
> Use -h to see help about each section
> [plightbo AT raptor c]$ gcc test.cpp -lstdc++ -lc -mno-cygwin
> [plightbo AT raptor c]$ cygcheck.exe a.exe
> Found: .\a.exe
> .\a.exe
>    C:\cygwin\bin\cygwin1.dll
>      C:\WINDOWS\SYSTEM\KERNEL32.dll
>    C:\WINDOWS\SYSTEM\crtdll.dll
> 
> Use -h to see help about each section
> [plightbo AT raptor c]$
> 
> However, as you can see crtdll.dll AND cygwin1.dll shouldn't both be linked
> as is happening. When I run the app, it just locks up, which is
> understandable. So what is going on? I still think it has to do with those
> symlinks I made. What am I doing wrong? When compiling with -mno-cygwin I
> need to have both -lstdc++ (of course) but also -lc or else I get tons of
> linking errors. Yet without -mno-cygwin I no longer need -lc to compile/link.
> 

You need the MinGW versions of _G_config.h and libstdc++.a.  I suggest
waiting for the gcc-2.95.2-8 package to be announced.  If you can't wait
then visit http://www.mingw.org and download the MinGW version of gcc.

Earnie.

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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