delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT 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 AT cygwin DOT com |
From: | Olumide <50295 AT web DOT 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 AT ger DOT gmane DOT org> <49D26A62 DOT 40303 AT cygwin DOT com> |
Mime-Version: | 1.0 |
User-Agent: | Thunderbird 2.0.0.21 (Windows/20090302) |
In-Reply-To: | <49D26A62.40303@cygwin.com> |
X-IsSubscribed: | yes |
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 |
>> 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |