【发布时间】:2018-10-07 15:14:19
【问题描述】:
我在我的 android 库中包含 CGAL 标头,我收到此错误。我自己没有使用 CGAL::Epick,它是一种在 CGAL 中模板化的类型。这似乎不是 CGAL 特定问题(可能是),但可能是 Android C++ 专家可以帮助我解决的工具链/libc++ 问题。请发表评论。
In file included from /home/ypv/gazebo_dev/240GB/android-ndk-samples/android-dso-server/app/src/main/cpp/dso_server/planning/planning_server/dStar/navGraph.cpp:1:
In file included from /home/ypv/Android/Sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/include/string:470:
In file included from /home/ypv/Android/Sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/include/string_view:169:
In file included from /home/ypv/Android/Sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/include/__string:56:
In file included from /home/ypv/Android/Sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/include/algorithm:643:
In file included from /home/ypv/Android/Sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/include/memory:650:
In file included from /home/ypv/Android/Sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/include/iterator:427:
/home/ypv/Android/Sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/include/__functional_base:60:21: error: invalid operands to binary expression ('const CGAL::Epick' and 'const CGAL::Epick')
{return __x < __y;}
【问题讨论】:
-
这里有问题。谁在尝试比较两个内核实例?
-
你说,CGAL内部没有直接的内核比较?
-
内核不是你比较的东西。但是根据您提供的信息,我们只能说“有问题”。
-
一旦包含 CGAL 标头和包含 stl 标头,就会发生此错误,例如矢量或字符串或映射等。我只重新编译了 CGAL 头文件,以消除对 stdc++ 的任何疑问。由于这是一个编译错误,链接到错误的 stl 库似乎不适用。
-
@ypvvpy 你的问题真的很糟糕。你应该给出一些关于你试图编译的代码的上下文。
标签: android cgal toolchain libc++