简体   繁体   English

cc1plus:错误:hxcpp无法识别的命令行选项“ -stdlib = libstdc ++”

[英]cc1plus: error: unrecognized command line option “-stdlib=libstdc++” with hxcpp

I'm trying to compile a Haxe file into a cpp executable using hxcpp as provided by running terminal command ~ haxelib Install hxcpp 我尝试编译HAXE文件转换成使用CPP可执行hxcpp通过运行终端命令提供~ haxelib Install hxcpp

However, upon compilation I get this error 但是,编译后出现此错误

cc1plus: error: unrecognized command line option "-stdlib=libstdc++"

I know cc1plus is the actual compiler for the g++ driver so I have provided my version info 我知道cc1plus是g ++驱动程序的实际编译器,所以我提供了我的版本信息

g++ --version g ++ --version

i686-apple-darwin11-llvm-g++-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.`

I am running MacOsX 10.7.5 我正在运行MacOsX 10.7.5

更新到g ++ 5.0.0,一切正常

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法解析cc1plus:错误:无法识别的命令行选项“ -std = c ++ 11” - Failed to resolve cc1plus: error: unrecognized command line option “-std=c++11” cc1plus:错误:无法识别的命令行选项“-std=c++0x” - cc1plus: error: unrecognized command line option "-std=c++0x" cc1plus:错误:无法识别的命令行选项“ -Wno-implicit-fallthrough” [-Werror] - cc1plus: error: unrecognized command line option “-Wno-implicit-fallthrough” [-Werror] cc1plus:错误:无法识别的命令行选项“ -fsysroot = <path> ”和g ++ - cc1plus: error: unrecognized command line option “-fsysroot=<path>” with g++ cc1plus:错误:无法识别的命令行选项“ -std = gnu ++ 11” - cc1plus: error: unrecognized command line option “-std=gnu++11” 为什么我得到cc1plus:错误:无法识别的命令行选项“-arch”? - Why do I get cc1plus: error: unrecognized command line option “-arch”? cc1plus:错误:使用g ++无法识别的命令行选项“-std = c ++ 11” - cc1plus: error: unrecognized command line option “-std=c++11” with g++ cc1plus:对任何其他警告的无法识别的命令行选项警告 - cc1plus: unrecognized command line option warning on any other warning 为什么“cc1plus:警告:无法识别的命令行选项”用于“no-”选项仅在有另一个警告时由g ++标记? - why is “cc1plus: warning: unrecognized command line option” for “no-” options only flagged by g++ when there is another warning? cc1plus.exe:错误:无法识别 CMake 的命令行选项“-fdump-class-hierarchy” - cc1plus.exe: error: unrecognized command line option '-fdump-class-hierarchy' with CMake
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM