centos 下混合编译编译C和Fortran程序

npu123456 2014-08-24 05:09:54
最近在学习有限元程序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
如果能够帮忙则万分感谢!
...全文
305 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
引用 2 楼 npu123456 的回复:
[quote=引用 1 楼 micropentium6 的回复:] Do u have any c and fortran background?
C学过,Fortran正在自学。[/quote] 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
npu123456 2014-08-24
  • 打赏
  • 举报
回复
引用 1 楼 micropentium6 的回复:
Do u have any c and fortran background?
C学过,Fortran正在自学。
  • 打赏
  • 举报
回复
Do u have any c and fortran background?

23,120

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧