libCGAL-vc120-mt-sgd-4.5.1.lib链接错误,似乎无法找到或构建它 [英] Link error with libCGAL-vc120-mt-sgd-4.5.1.lib and cant seem to find or build it

查看:88
本文介绍了libCGAL-vc120-mt-sgd-4.5.1.lib链接错误,似乎无法找到或构建它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿,在CGAL和CMake方面我有点菜鸟,但是我已经明白了一点,除了此链接错误之外,其他所有东西似乎都在运行:

Hey I'm a bit of a noob when it comes to CGAL and CMake but I've gotten to the point where everything seems to be running except for this link error:

LINK:致命错误LNK1104:无法打开文件'libCGAL-vc120-mt-sgd-4.5.1.lib'

LINK : fatal error LNK1104: cannot open file 'libCGAL-vc120-mt-sgd-4.5.1.lib'

问题似乎无法找到

我可以在我的cgal lib目录中看到 libCGAL-vc120-mt-gd-4.5.1.lib哪个链接很好。我不确定gd和sgd之间的区别是什么以及如何实现。

I can see a 'libCGAL-vc120-mt-gd-4.5.1.lib' in my cgal lib dir which links fine. I'm not sure what the difference between gd and sgd is though and how to make it.

任何帮助都将受到赞赏。

Any help is appreciated.

推荐答案

libCGAL-vc120-mt-sgd-4.5.1.lib 的命名表明您正在编译程序,它使用CGAL,并使用链接器标志 / MTd (调试并静态链接C ++运行时 )。

The naming libCGAL-vc120-mt-sgd-4.5.1.lib shows that you are compiling a program, that uses CGAL, using the linker flag /MTd (Debug, and link the C++ runtime statically).

CGAL的CMake脚本不支持与静态运行时的链接。它们仅支持 / MD / MDd 。我建议您在设置中更改该链接器标志。

The CMake scripts of CGAL do not support linking with the static runtime. They only support /MD or /MDd. I suggest you change that linker flag in your setup.

或者,您可以尝试更改CGAL的CMake脚本,但是我不建议使用该解决方案。

Alternately, you can try to change the CMake scripts of CGAL, but I do not recommend that solution.

这篇关于libCGAL-vc120-mt-sgd-4.5.1.lib链接错误,似乎无法找到或构建它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆