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 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: <49D26A62 DOT 40303 AT cygwin DOT com> <20090404181111 DOT GA30828 AT ednor DOT casa DOT cgf DOT cx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.16 (2007-06-09) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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/