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 Subject: Re: compiling with visual studio Date: Fri, 1 Jul 2011 19:52:02 +0200 Lines: 40 Message-ID: References: <4E0E2E92 DOT 5040406 AT aol DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8bit User-Agent: Unison/2.1.4 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 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