CGAL Qt 链接器错误

CGAL Qt linker error

我在 VisualStudio 2013 中使用 CGAL 和 Qt 编译项目时遇到问题。我在 CGAL 演示中尝试了 Polyhedron 的演示应用程序,然后尝试将 Scene 移动到我自己的 Qt项目。

错误如下:

error LNK2001: unresolved external symbol "public: static struct QMetaObject const CGAL::Three::Viewer_interface::staticMetaObject" (?staticMetaObject@Viewer_interface@Three@CGAL@@2UQMetaObject@@B) ...\Scene_polyhedron_item.obj

error LNK2001: unresolved external symbol "public: static class QColor const CGAL::Three::Scene_item::defaultColor" (?defaultColor@Scene_item@Three@CGAL@@2VQColor@@B) ...\Scene_polyhedron_item.obj

链接器输入:

每次构建都会生成 moc_* 文件

感谢任何建议。

问题出在 lib 的预处理器常量中...设置为 EXPORT,但必须为 IMPORT。

所以现在它正在运行,juz