使用64位GCC在Cygwin编译64位GSL [英] Compiling 64-bit GSL on Cygwin using 64-bit GCC

查看:1212
本文介绍了使用64位GCC在Cygwin编译64位GSL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图编译一个Windows 7计算机上的64位GSL。下面是我采取的步骤:


  1. 下载和未解压的GSL 1.15源中找到这里


  2. 经过测试,我在Cygwin的外壳可用GCC的64位版本,通过编译程序最小

      // simple.C诠释主(){
        ;
        返回0;
    }

    使用

     的x86_64-W64-的mingw32-GCC -m64 simple.C -o简单


  3. 在未解压的文件夹,我想通过的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:

  1. Downloaded and untarred the GSL 1.15 source found here.

  2. 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
    

  3. 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 the configure file, but that is huge and appears to have been generated using autoconf.

解决方案

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆