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

时间:2015-02-04 08:38:31

标签: c++ compiler-errors g++ haxe

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

提供的~ haxelib Install 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

1 个答案:

答案 0 :(得分:0)

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