Closed simonasdmd closed 5 years ago
LNK2019 is the error "unresolved external symbol". It means that you need to link your project with libgmp, that provides the symbols that are required.
@lrineau Hello. I added "libgmp" and had the same problem.
Your screenshot does not say anything about libgmp. It seems to show directories, including the one auxiliary\lib\gmp
that probably contains libgmp. But that is not the screen that tells if libgmp is added to the project.
hi~ My CGAL environment is downloaded from the "CGAL-4.13.1-Setup.exe" installation. There is only "gmp / lib" under "auxiliary" in the installation directory. Is there anything missing?
hi @lrineau If you can compile properly. Could you show me your catalog structure? Thank you.
You are right. CGAL4.13/auxiliary/gmp/lib
is the right path to the directory that contains the GMP and MPFR libraries. But you still need to instruct Visual Studio to link your project with them. I do not use Visual Studio myself, and I cannot tell where it is in the configuration dialogs.
Please use the following template to help us solving your issue.
Issue Details
I have manually incorporated two updates of "4122" and "4069". But errors are displayed at compile time. Some LNK 2019 errors. Is there anything else that needs to be changed?
Describe your issue. Please be specific (compilation error, runtime error, unexpected behavior, wrong results, etc.).
Source Code
The code is below. (Please remove ".txt" manually)
jianhua.cpp.txt
If your issue arises by using CGAL in your own source code, please provide a minimalist example that we can compile easily to reproduce the bug. If your issue arises from using a CGAL program (demo, example, etc.), please let us know which one. Helping you solving an issue is much easier and efficient if we can reproduce it.
Environment
Thank you all.