centos 下混合编译编译C和Fortran程序
最近在学习有限元程序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
如果能够帮忙则万分感谢!