ÎÒÊDzËÄñ£¡Çë´ó¼Ò°ï棡
ÔÚÖ÷³ÌÐò±àÒëͨ¹ýºó£¬ÎÒÏëµ¥¶À±àÒëÃû³ÆÎª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