【问题标题】:building cgal sln cannot be completed无法完成建造 cgal sln
【发布时间】:2018-05-06 12:49:50
【问题描述】:

我在编译 CGAL 时遇到问题 我按照这里的步骤操作: http://www.cse.msu.edu/~ytong/CGAL_installation.ppt

但是当我到达构建 CGAL .sln 步骤时 它显示以下错误: here

输出

1>------ Build started: Project: CGAL, Configuration: Debug Win32 ------
1>  Building Custom Rule C:/dev/CGAL-4.9.1/src/CGAL/CMakeLists.txt
1>  CMake does not need to re-run because C:\dev\CGAL-4.9.1\build\src\CGAL\CMakeFiles\generate.stamp is up-to-date.
1>  all_files.cpp
1>     Creating library C:/dev/CGAL-4.9.1/build/lib/Debug/CGAL-vc120-mt-gd-4.9.1.lib and object C:/dev/CGAL-4.9.1/build/lib/Debug/CGAL-vc120-mt-gd-4.9.1.exp
1>all_files.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) class boost::system::error_category const & __cdecl boost::system::system_category(void)" (__imp_?system_category@system@boost@@YAABVerror_category@12@XZ) referenced in function "void __cdecl boost::system::`dynamic initializer for 'native_ecat''(void)" (??__Enative_ecat@system@boost@@YAXXZ)
1>all_files.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) class boost::system::error_category const & __cdecl boost::system::generic_category(void)" (__imp_?generic_category@system@boost@@YAABVerror_category@12@XZ) referenced in function "void __cdecl boost::system::`dynamic initializer for 'errno_ecat''(void)" (??__Eerrno_ecat@system@boost@@YAXXZ)
1>C:\dev\CGAL-4.9.1\build\bin\Debug\CGAL-vc120-mt-gd-4.9.1.dll : fatal error LNK1120: 2 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

【问题讨论】:

  • CMake 是否安装并找到了 Boost?什么版本的 Boost 和 CMake?
  • 是的,Boost 已安装 boost_1_59_0 ,cmake 3.7.1

标签: c++ visual-studio-2012 boost cmake cgal


【解决方案1】:

我们目前处于 CGAL 4.12,因此请升级并遵循官方安装说明。

【讨论】:

  • 它是否与 Visual Studio 2013 兼容?
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2017-01-31
  • 1970-01-01
  • 2022-09-27
  • 2016-08-14
  • 1970-01-01
相关资源
最近更新 更多