<!-- Origin Article URL: http://www.wretch.cc/blog/peicheng/15629798 --> <br>ok, just link with the static library "libf2c.a" <br><br><div class="codeBox"><br>sudo rm /usr/lib/libf2c.so && sudo ln -s /usr/lib/libf2c.a /usr/lib/libf2c.so<br></div><br><br>http://byeworld.blogspot.com/2009/01/libf2cso-undefined-reference-to-main.html