delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/07/01/17:55:46

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=4.3 required=5.0 tests=AWL,BAYES_50,DATE_IN_PAST_03_06,SPF_HELO_PASS,TW_BX,TW_IB,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Philipp Kraus <philipp DOT kraus AT flashpixx DOT de>
Subject: Re: compiling with visual studio
Date: Fri, 1 Jul 2011 19:52:02 +0200
Lines: 40
Message-ID: <iul1g2$lao$1@dough.gmane.org>
References: <C789D6D0-7FCF-4CC6-BD68-5A220D224793 AT flashpixx DOT de> <4E0E2E92 DOT 5040406 AT aol DOT com>
Mime-Version: 1.0
User-Agent: Unison/2.1.4
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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 2011-07-01 22:31:14 +0200, Tim Prince said:

>   On 07/01/2011 09:22 AM, Kraus Philipp wrote:
>> Hello,
>> 
>> I'm new with cygwin and hope my question is not off topic. I try to 
>> port a C++ framwork to Windows. The framework uses Atlas and LAPack, 
>> libxml (with libiconv and zlib) and GiNaC with CLN. Some libs like zlib 
>> can I build with the Visual Studio nmake command, but other can be 
>> build with configure, make, make install only.
>> 
>> I have setup the Cygwin.bat with Visual Studio (the Atlas developer 
>> describe this on http://math-atlas.sourceforge.net/errata.html#WinComp) 
>> but do I understand it in a correct way, that after setting the 
>> environmental variables, I can use the VS compiler under Cygwin? I have 
>> installed the gcc, g++, gfortran and make tools under Cygwin and can 
>> compile my libraries, but the configure script determine the ld linker. 
>> If I have compiled a library under cygwin, can I link the binary in 
>> Visual Studio?
>> 
>> Thanks
>> 
>> 
> If you want to link gnu compiled objects under Visual Studio, the mingw 
> cross compilers would be more suitable than the cygwin compiler.  This 
> quickly gets off topic.  If you want to use standard Makefiles, gnu 
> make (including, but not restricted to, the cygwin one) is a better bet 
> than nmake.  There's no law against using mingw or even CL with gnu 
> make.

Thanks for your great answer. I have seen that I can install the mingw 
toolset under Cygwin, because I need the configure process before 
running make. If I install the mingw tools, run my configure script and 
than make, can I create my binaries with this steps or is another way a 
better solution?

Thanks

Phil



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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