当前位置: 技术问答>linux和unix
centos 下混合编译编译C和Fortran程序
来源: 互联网 发布时间:2017-05-27
本文导语: 最近在学习有限元程序calculix,在centos上安装了gcc和gfortran。下载了源码要进行编译,主程序是ccx_2.7.c,切换到其目录并执行gcc ccx_2.7.c,提示以下错误: In file included from ccx_2.7.c:30: CalculiX.h:44: error: expected ‘)’ ...
最近在学习有限元程序calculix,在centos上安装了gcc和gfortran。下载了源码要进行编译,主程序是ccx_2.7.c,切换到其目录并执行gcc ccx_2.7.c,提示以下错误:
In file included from ccx_2.7.c:30:
CalculiX.h:44: error: expected ‘)’ before ‘(’ token //应该是C多行写的时候出问题了
.....
ccx_2.7.c: In function ‘main’:
ccx_2.7.c:103: error: ‘stop’ undeclared (first use in this function)
ccx_2.7.c:103: error: (Each undeclared identifier is reported only once
ccx_2.7.c:103: error: for each function it appears in.)
ccx_2.7.c:103: error: expected expression before ‘)’ token
.....
新手完全不知道该如何入手了。
源码在此处:
http://www.dhondt.de/ccx_2.7.src.tar.bz2
如果能够帮忙则万分感谢!
In file included from ccx_2.7.c:30:
CalculiX.h:44: error: expected ‘)’ before ‘(’ token //应该是C多行写的时候出问题了
.....
ccx_2.7.c: In function ‘main’:
ccx_2.7.c:103: error: ‘stop’ undeclared (first use in this function)
ccx_2.7.c:103: error: (Each undeclared identifier is reported only once
ccx_2.7.c:103: error: for each function it appears in.)
ccx_2.7.c:103: error: expected expression before ‘)’ token
.....
新手完全不知道该如何入手了。
源码在此处:
http://www.dhondt.de/ccx_2.7.src.tar.bz2
如果能够帮忙则万分感谢!
|
ur major is some sort of engineering, is't it?
Follow the link below to conduct the compilation/installation of calculix:
http://www.dhondt.de/cgx_2.7.INSTALL