Mixed language statically linking with gfortran and gcc

六月ゝ 毕业季﹏ 提交于 2019-12-03 21:42:51

OK, it appears that it was faaar simpler than what I envisaged! You just need to link using gfortran, and ignore linking gfortran in that final step:

gfortran -static-libgfortran -m32  main_program.o -o program_static\
         -L./ -llibname -lkrb5 -lgssapi_krb5 -lsasl2

Seems to work now!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!