|
谢谢老师解答,预编译版python3.10不支持CentOS 7,所以我从源码编译了,遇到了如下问题:
一、使用 ifort+MKL编译时,C99报错
error: ‘for’ loop initial declarations are only allowed in C99 mode for (int i = 0; i < rank; ++i) {
^
提示应该在代码中加入-std=c99,这个应该加在Makefile的什么地方呢?
二、使用gfortran+OpenBLAS编译时,链接报了如下的错误
add_bgcharge_to_inp.f90:(.text+0x69a5): undefined reference to `for_trim'
add_bgcharge_to_inp.f90:(.text+0x6a22): undefined reference to `for_open'
add_bgcharge_to_inp.f90:(.text+0x6a76): undefined reference to `for_write_seq_fmt'
add_bgcharge_to_inp.f90:(.text+0x6b0c): undefined reference to `for_write_seq_fmt'
add_bgcharge_to_inp.f90:(.text+0x6b74): undefined reference to `for_write_seq_fmt'
add_bgcharge_to_inp.f90:(.text+0x6ba1): undefined reference to `for_close'
collect2: error: ld returned 1 exit status
make: *** [add_bgcharge_to_inp] Error 1
这种编译我也没整明白,这种情况应该如何解决呢?
麻烦老师指点一下迷津,太感谢了
|
|