F951错误:无法识别的命令行选项 [英] f951 error: unrecognized command line option

查看:104
本文介绍了F951错误:无法识别的命令行选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在linux上,正在编译以下内容:

I am on linux and I am compiling the following:

mpif90 -shared source.F90 object1.o object2.o -L/some/path -Qoption,link,-rpath=/some/path -I/some/path -lhdf5 -lhdf5_fortran -fPIC -fpp -DDECDEC_ -DMSMS_  -cxxlib-gcc -o libhdfwrapper.so

我得到

f95: unrecognized option '-Qoption,link,-rpath=/some/path'
f95: unrecognized option '-cxxlib-gcc'
f951: error: unrecognized command line option "-fpp"

有人可以告诉我为什么无法识别fpp吗?

can anybody tell me why fpp is not recognized?

推荐答案

-fpp 是某些编译器(尤其是Solaris Studio)使用的标志.同样, -rpath 似乎指向Solaris Studio.看来您正在使用gfortran或其他编译器.其他编译器改用 -cpp .其他选项也是如此.

-fpp is a flag used by some compilers, notably Solaris Studio. Also -rpath seems to point to Solaris Studio. It seems you are using gfortran or some other compiler, however. Other compilers use -cpp instead. The same holds for the other options.

此外,部分 -Qoption,link,-rpath =/some/path 的格式可能不正确.

Also, the part -Qoption,link,-rpath=/some/path is probably not in the right format.

您可能需要咨询 http://www.oracle.com/technetwork/server-storage/solarisstudio/documentation/oss-translate-gfortran-180584.pdf 和您的编译器手册.

You may want to consult http://www.oracle.com/technetwork/server-storage/solarisstudio/documentation/oss-translate-gfortran-180584.pdf and your compiler's manual.

这篇关于F951错误:无法识别的命令行选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆