关闭

g++: 错误: –fpermissive:没有那个文件或目录

7503人阅读 评论(0) 收藏 举报

错误:

host C++: libutils <= frameworks/base/libs/utils/AssetDir.cpp

host C++: libutils <= frameworks/base/libs/utils/Asset.cpp
g++: 错误: –fpermissive:没有那个文件或目录
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libutils_intermediates/Asset.o] 错误 1
make: *** 正在等待未完成的任务....
g++: 错误: –fpermissive:没有那个文件或目录
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libutils_intermediates/AssetDir.o] 错误 1

true


是传递给g++的标志被误判成文件名了。用"make showcommands"编译,贴出完整的输出。

host C++: libutils <= frameworks/base/libs/utils/AssetDir.cpp
g++  -I external/zlib   -I frameworks/base/libs/utils   -I out/host/linux-x86/obj/STATIC_LIBRARIES/libutils_intermediates   -I dalvik/libnativehelper/include/nativehelper   -I system/core/include   -I hardware/libhardware/include   -I hardware/libhardware_legacy/include   -I hardware/ril/include   -I dalvik/libnativehelper/include   -I frameworks/base/include   -I frameworks/base/opengl/include   -I frameworks/base/native/include   -I external/skia/include   -I tools/include   -I out/host/linux-x86/obj/include  -c  -fno-exceptions -Wno-multichar -m32 -fPIC -include system/core/include/arch/linux-x86/AndroidConfig.h -D_FORTIFY_SOURCE=0 -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -O2 -g -fno-strict-aliasing -DNDEBUG -UDEBUG -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -Wsign-promo -DNDEBUG -UDEBUG   -DLIBUTILS_NATIVE=1  –fpermissive     -MD -o out/host/linux-x86/obj/STATIC_LIBRARIES/libutils_intermediates/AssetDir.o frameworks/base/libs/utils/AssetDir.cpp
g++: error: –fpermissive: No such file or directory
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libutils_intermediates/AssetDir.o] Error 1


问题解决方法是:

因为–fpermissive 前边的-是带输入法的,改为不带输入法的 短线就可以了

0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:227041次
    • 积分:3136
    • 等级:
    • 排名:第10988名
    • 原创:76篇
    • 转载:94篇
    • 译文:0篇
    • 评论:13条
    文章分类
    最新评论