使用64位GCC在Cygwin编译64位GSL [英] Compiling 64-bit GSL on Cygwin using 64-bit GCC
问题描述
我试图编译一个Windows 7计算机上的64位GSL。下面是我采取的步骤:
-
下载和未解压的GSL 1.15源中找到这里。
-
经过测试,我在Cygwin的外壳可用GCC的64位版本,通过编译程序最小
// simple.C诠释主(){
;
返回0;
}使用
的x86_64-W64-的mingw32-GCC -m64 simple.C -o简单
-
在未解压的文件夹,我想通过
的x86_64-W64-的mingw32-GCC
编译./配置
但我不知道怎么样。我接过一看配置
文件,但是这是巨大的,并显示使用的autoconf
来已产生。
在Cygwin的提示,你可以使用:
CC = x86_64的-W64-的mingw32-GCC CFLAGS = -m64的./configure
和配置将它捡起来。
重要提示:
我很惊讶,你没有一个包装 GCC
...你为什么不尝试使用 ./配置
本身就像是开始看到重写的C编译器,因为我之前表现出它做什么。
I am trying to compile 64-bit GSL on a Windows 7 machine. Here are the steps I took:
Downloaded and untarred the GSL 1.15 source found here.
Tested that I have a 64-bit version of GCC available in the Cygwin shell, by compiling the minimal program
// simple.C int main() { ; return 0; }
using
x86_64-w64-mingw32-gcc -m64 simple.C -o simple
In the untarred folder, I would like to pass the
x86_64-w64-mingw32-gcc
compiler to./configure
but am not sure how. I took a look at theconfigure
file, but that is huge and appears to have been generated usingautoconf
.
At the cygwin prompt you can use:
CC=x86_64-w64-mingw32-gcc CFLAGS=-m64 ./configure
and configure will pick it up.
Important Note:
I am surprised that you don't have a wrapper gcc
... Why don't you try using ./configure
by itself just as is to begin with and see what it does before overriding the C compiler as I showed.
这篇关于使用64位GCC在Cygwin编译64位GSL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!