Macos 神秘链接错误。我从哪里开始?

Macos 神秘链接错误。我从哪里开始?,macos,compiler-construction,matplotlib-basemap,Macos,Compiler Construction,Matplotlib Basemap,我正试图从源代码构建basemap工具包,以便matplotlib在OS X 10.8下的MacBook Pro上运行。C和C++编译器是那些包含最新XCODEL包的编译器。该包包括geos-3.3.3包,该包需要单独构建并在构建主basemap python包之前安装。使用提供的Makefile执行此操作时,当Makefile尝试构建libgeos.dylib库时,会出现以下错误: Undefined symbols for architecture x86_64: "std::auto_

我正试图从源代码构建basemap工具包,以便matplotlib在OS X 10.8下的MacBook Pro上运行。C和C++编译器是那些包含最新XCODEL包的编译器。该包包括geos-3.3.3包,该包需要单独构建并在构建主basemap python包之前安装。使用提供的Makefile执行此操作时,当Makefile尝试构建libgeos.dylib库时,会出现以下错误:

Undefined symbols for architecture x86_64:
  "std::auto_ptr<geos::geom::Envelope>::auto_ptr(std::auto_ptr_ref<geos::geom::Envelope>)", referenced from:
      virtual thunk to geos::geom::GeometryCollection::computeEnvelopeInternal() constin libgeom.a(GeometryCollection.o)
  "__ZNSt8auto_ptrIN4geos4geom8EnvelopeEEcvSt12auto_ptr_refIT_EIS2_EEv", referenced from:
      virtual thunk to geos::geom::GeometryCollection::computeEnvelopeInternal() constin libgeom.a(GeometryCollection.o)
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
架构x86_64的未定义符号: “std::auto_ptr::auto_ptr(std::auto_ptr_ref)”,引用自: 虚拟链接到geos::geom::GeometryCollection::ComputeInvelopeInternal()contin libgeom.a(GeometryCollection.o) “\uu ZNSt8auto\u ptrin4geo4geom8envelopeevst12auto\u ptr\u refIT\u EIS2\u EEv”,引用自: 虚拟链接到geos::geom::GeometryCollection::ComputeInvelopeInternal()contin libgeom.a(GeometryCollection.o) ld:找不到架构x86_64的符号 collect2:ld返回了1个退出状态
在Fedora17机器上,使用GCC4.7,此库成功构建,因此Mac编译器/链接器显然有问题。然而,我不知道如何解码这条信息。例如,什么是“虚拟恶作剧”?关于如何在Mac上编译和构建它,有什么见解吗?

我使用了不同的编译器,问题就解决了。尝试:

使CXX=c++

为我工作。OSX 10.8.3,XCode 4.6.1