delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/04/04/15:21:38

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Sat, 4 Apr 2009 16:21:15 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Using Cygwin compiled libs in Visual Studio
Message-ID: <20090404202114.GA31123@ednor.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <gqtmom$mki$1 AT ger DOT gmane DOT org> <49D26A62 DOT 40303 AT cygwin DOT com> <gr7vga$q7g$1 AT ger DOT gmane DOT org> <20090404181111 DOT GA30828 AT ednor DOT casa DOT cgf DOT cx> <gr8e00$u3u$1 AT ger DOT gmane DOT org>
MIME-Version: 1.0
In-Reply-To: <gr8e00$u3u$1@ger.gmane.org>
User-Agent: Mutt/1.5.16 (2007-06-09)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Sat, Apr 04, 2009 at 08:55:42PM +0100, Olumide wrote:
>On Sat, Apr 04, 2009 at 02:11:11PM -0400, Christopher Faylor wrote:
>>On Sat, Apr 04, 2009 at 04:48:25PM +0100, Olumide wrote:
>>>I guess what I find surprising is that gcc can be used to produce
>>>Windows XP runnable code.  Here's a typical compilation command
>>>generated by the build process: ...
>>Why is this surprising?  Cygwin *is* Windows XP runnable code.
>
>Is it?  Pardon my n00bness but I recall once trying to run a Cygwin
>utility from Window's cmd, just for the fun of it.  It didn't work.

Of course you can run any Cygwin based program you want.  If Cygwin
didn't produce XP runnable code how could it ever work on XP?  Cygwin
works by linking cygwin1.dll into programs like every other program
under Windows.

>But back to the main question: will a library compiled under Cygwin in
>the manner I described be linkable in Visual Studio .NET?  Your answer
>taken to the extreme, would suggest that I can link any of the core
>Cygwin (*.a) libraries and link it with the MS VS.NET toolchain.

Maybe this will help:
http://cygwin.com/faq/faq-nochunks.html#faq.programming.msvs-mingw

Google also seems to be pretty informative.

cgf

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