问题
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