Compiling 64-bit GSL on Cygwin using 64-bit GCC

て烟熏妆下的殇ゞ 提交于 2019-12-11 09:41:58

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/16977104/compiling-64-bit-gsl-on-cygwin-using-64-bit-gcc

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!