24小时热门版块排行榜    

查看: 956  |  回复: 0

chemdeer

新虫 (初入文坛)

[求助] cfour编译

请问大家我在编译cfour的时候,在configure完之后出现以下结果,make的话就会出现“transformations.cxx:208:1: error: ‘#pragma’ is not allowed here” 这类的错误。请问怎么解决?
checking whether make sets $(make)... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gnu make... make
checking for ranlib... ranlib
checking for a bsd-compatible install... /usr/bin/install -c
checking for ld... ld
checking for ar... ar
checking for strip... strip
checking for etags... etags
checking for ctags... ctags
checking for gcc... gcc
checking whether the c compiler works... yes
checking for c compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the gnu c compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept iso c89... none needed
checking for g++... g++
checking whether we are using the gnu c++ compiler... yes
checking whether g++ accepts -g... yes
checking whether we are using the gnu fortran compiler... no
checking whether ifort accepts -g... no
checking for ifort option to support openmp... unsupported
checking for gcc option to support openmp... -fopenmp
checking for g++ option to support openmp... -fopenmp
checking how to run the c preprocessor... gcc -e
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -e
checking for ansi c header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for string.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for gnu libc compatible malloc... yes
checking for gethostname... yes
checking how to get verbose linking output from ifort... configure: warning: compilation failed

checking for fortran libraries of ifort...
checking for alternate main to link with fortran libraries... main
checking size of void *... 8
checking size of int... 4
checking size of long int... 8
checking size of long long int... 8
checking for dummy main to link with fortran libraries... none
checking for fortran name-mangling scheme... configure: error: in `/home/lu/software/cfour_v2.00beta':
configure: error: cannot compile a simple fortran program
see `config.log' for more details
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 chemdeer 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 材料专业求调剂 +10 hanamiko 2026-03-18 10/500 2026-03-23 22:00 by luoyongfeng
[考研] 0703化学求调剂 +4 奶油草莓. 2026-03-22 5/250 2026-03-23 19:37 by pswait
[考研] 333求调剂 +3 ALULU4408 2026-03-23 3/150 2026-03-23 19:04 by macy2011
[考研] 一志愿中国石油大学(华东) 本科齐鲁工业大学 +4 石能伟 2026-03-17 4/200 2026-03-23 17:51 by 17862566385
[考研] 求调剂一志愿海大,0703化学学硕304分,有大创项目,四级已过 +6 幸运哩哩 2026-03-22 10/500 2026-03-22 20:10 by edmund7
[考研] 305分求调剂(食品工程) +4 Sxy112 2026-03-21 6/300 2026-03-22 15:26 by 无懈可击111
[考研] 求调剂院校信息 +6 CX 330 2026-03-21 6/300 2026-03-22 15:25 by 无懈可击111
[考研] 初试 317 +7 半拉月丙 2026-03-20 7/350 2026-03-21 22:26 by peike
[考研] 求调剂 +3 13341 2026-03-20 3/150 2026-03-21 18:28 by 学员8dgXkO
[考研] 【考研调剂】化学专业 281分,一志愿四川大学,诚心求调剂 +11 吃吃吃才有意义 2026-03-19 11/550 2026-03-21 18:23 by 学员8dgXkO
[考研] 华东师范大学-071000生物学-293分-求调剂 +3 研究生何瑶明 2026-03-18 3/150 2026-03-21 01:30 by JourneyLucky
[考研] 南京大学化学376求调剂 +3 hisfailed 2026-03-19 6/300 2026-03-20 23:43 by hisfailed
[考研] 304求调剂 +7 司空. 2026-03-18 7/350 2026-03-20 23:08 by JourneyLucky
[考研] 一志愿武汉理工材料工程专硕调剂 +9 Doleres 2026-03-19 9/450 2026-03-20 22:36 by JourneyLucky
[考研] 329求调剂 +9 想上学吖吖 2026-03-19 9/450 2026-03-20 22:01 by luoyongfeng
[考研] 295复试调剂 +8 简木ChuFront 2026-03-19 8/400 2026-03-20 20:44 by zhukairuo
[考研] 261求B区调剂,科研经历丰富 +3 牛奶很忙 2026-03-20 4/200 2026-03-20 19:34 by JourneyLucky
[考研] 材料学硕318求调剂 +5 February_Feb 2026-03-19 5/250 2026-03-19 23:51 by 23Postgrad
[考研] 288求调剂,一志愿华南理工大学071005 +5 ioodiiij 2026-03-17 5/250 2026-03-19 18:22 by zcl123
[考研] 【同济软件】软件(085405)考研求调剂 +3 2026eternal 2026-03-18 3/150 2026-03-18 19:09 by 搏击518
信息提示
请填处理意见