【发布时间】:2015-02-04 08:38:31
【问题描述】:
我正在尝试使用运行终端命令~ 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
【问题讨论】:
-
@user 类似且有用的是。正如该帖子中所解释的,
-stdlib标志是一个 clang 标志而不是 gcc 标志。但是,在这种情况下,我没有调用 gcc 编译器。我打电话给hxcpp,后者又调用Xcode,然后又调用gcc。该帖子将其描述为链接错误。但是如果整个编译都是通过 Xcode 处理的(假设),那么怎么会有链接错误呢?最重要的是,hxcpp haxelib似乎对其他人有用,所以我的机器一定有一些特定的东西阻碍了它。我认为它是过时的软件,但很难确认。
标签: c++ compiler-errors g++ haxe