X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-3.6 required=5.0 	tests=BAYES_00,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Olumide <50295@web.de>
Subject:  Re: Using Cygwin compiled libs in Visual Studio
Date:  Sat, 04 Apr 2009 16:48:25 +0100
Lines: 36
Message-ID: <gr7vga$q7g$1@ger.gmane.org>
References:  <gqtmom$mki$1@ger.gmane.org> <49D26A62.40303@cygwin.com>
Mime-Version:  1.0
Content-Type:  text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding:  7bit
User-Agent: Thunderbird 2.0.0.21 (Windows/20090302)
In-Reply-To: <49D26A62.40303@cygwin.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

>> Is it possible or recommended to use a Cygwin compiled lib file or dll 
>> in Visual studio? The problem is that although I'm doing my 
>> development in Visual Studio, a number of the sources I intend to use 
>> have Cygwin makefiles but no Visual studio projects.
> ...
> You're probably more interested in the MinGW project <mingw.org>.  It
> uses MS's CRT, which will likely make your intended melding easier.

Thanks, but manual recommends Cygwin for compiling the library Goto BLAS 
  (http://www.tacc.utexas.edu/resources/software/#blas) for the Windows 
XP/2000 environments. I'm a bit surprised that the build process uses 
the GNU compiler to build the library (which by the way has a *.a file 
extension).

Other than linking the library in a Win32 application (trial and see 
method), how can I verify if the library produced is a Win32 linkable 
library?

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:

gcc -c -O2 -D_GNU_SOURCE -DWINDOWS_ABI -Wall -m32 -DF_INTERFACE_F2C 
-DNEED_F2CCO NV -DMAX_CPU_NUMBER=2 -DNUM_BUFFERS=\(2*2\) 
-DASMNAME=_cpotri -DASMFNAME=_cpotri _ -DNAME=cpotri_ -DCNAME=cpotri 
-DFUNDERSCORE=_ -DNEEDFUNDERSCORE -DBUNDERSCORE=_ -DNEEDBUNDERSCORE 
-I../.. -DARCH_X86 -DPENTIUMM -DL1_CODE_SIZE=32768 
-DL1_CODE_ASSOCIATIVE=8 -DL1_CODE_LINESIZE=64 -DL1_DATA_SIZE=32768 
-DL1_DATA_ASSOCIATIVE=8 -DL1_DATA_LINESIZE=64 -DL2_SIZE=1048576 
-DL2_ASSOCIATIVE=8 -DL2_LINESIZE=64 -DITB_SIZE=4096 -DITB_ASSOCIATIVE=4 
-DITB_ENTRIES=128 -DDTB_SIZE=4096 -DDTB_ASSOCIATIVE=4 -DDTB_ENTRIES=128 
-DHAVE_CMOV -DHAVE_MMX -DHAVE_SSE -DHAVE_SSE2 -DHAVE_CFLUSH 
-DNUM_SHAREDCACHE=1 -DNUM_CORES=1 -DCORE_BANIAS  -DCOMPLEX -UDOUBLE 
zpotri.c -o cpotri.o

Thanks.


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

