Link error with libCGAL-vc120-mt-sgd-4.5.1.lib and cant seem to find or build it

℡╲_俬逩灬. 提交于 2019-12-09 23:18:21

问题


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 : fatal error LNK1104: cannot open file 'libCGAL-vc120-mt-sgd-4.5.1.lib'

trouble is I cant seem to find a reference to this lib anywhere am I building wrong?

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.


回答1:


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).

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.

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



来源:https://stackoverflow.com/questions/27970033/link-error-with-libcgal-vc120-mt-sgd-4-5-1-lib-and-cant-seem-to-find-or-build-it

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!