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

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

我正在尝试使用 运行 终端命令 ~ haxelib Install hxcpp

提供的 hxcpp 将 Haxe 文件编译成 cpp 可执行文件

但是,在编译时我得到了这个错误

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

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

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

我是 运行 MacOsX 10.7.5

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