cc1plus:错误:使用 HXCPP "-stdlib=libstdc++"无法识别的命令行选项

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

本文关键字:识别 命令行 选项 使用 错误 HXCPP -stdlib cc1plus libstdc++      更新时间:2023-10-16

我正在尝试使用运行终端命令提供的hxcpp将Haxe文件编译为cpp可执行文件~ haxelib Install hxcpp

但是,在编译时我收到此错误

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

我知道cc1plus是g ++驱动程序的实际编译器,所以我提供了我的版本信息

g++ --版本

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.`

我正在运行 MacOsX 10.7.5

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