|
|
[交流]
【求助】f90子程序怎么编译错误?请大家帮忙,谢谢
我是菜鸟!请大家帮忙!
在主程序编译通过后,我想单独编译名称为readpol.f90的子程序,在Ubuntu linux下输入gfortran readpol.f90后,出现如下错误:
/usr/lib/gcc/i486-linux-gnu/4.4.3/libgfortranbegin.a(fmain.o): In function `main':
(.text+0x27): undefined reference to `MAIN__'
collect2: ld returned 1 exit status
在网上查了相关的资料后,其中有人说:
to fix the above error I needed to attach a -c compiler flag so that an object module was created without a progam. The error message was because the compiler was expecting to find a main program that called this subroutine.
但是如何attach a -c compiler flag 呢?请大家帮忙,谢谢!
http://pic.muchong.com/file.php?id=219
[ Last edited by bagboo on 2010-12-22 at 06:45 ] |
» 猜你喜欢
售SCI一区T0P文章,我:8.O.55.1.O.5.4,科目全,可+急
已经有7人回复
售一区SCI文章T0P,我:8O.551.O54,科目全,可十急
已经有6人回复
售SCI一区T0P文章,我:8.O55.1.O.54,科目全,可十急
已经有6人回复
售SCI一区文章,我:8O5.5.1.O5.4,科目全,可伽急
已经有7人回复
售SCI一区T0P文章,我:8.O55.1.O.54,科目全,可十急
已经有5人回复
售SCI文章,我:8O.5.5.1O.54,科目全,可十急
已经有5人回复
售SCI一区T0P文章,我:8O.55.1.O.5.4,科目齐全,可+急
已经有6人回复
售SCI一区T0P文章,我:8O.55.1.O.54,科目全,可伽急
已经有4人回复
售SCI一区T0P文章,我:8.O.55.1.O54,科目全,可伽急
已经有7人回复
售SCI文章,我:8O5.5.1.O.54,科目齐全,可+急
已经有6人回复
» 本主题相关价值贴推荐,对您同样有帮助:
» 抢金币啦!回帖就可以得到:
查看全部散金贴
|