我正试图使用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
发布于 2015-04-20 21:52:07
更新到g++ 5.0.0,一切都会正常运行
https://stackoverflow.com/questions/28316893
复制相似问题