CGAL / cgal

The public CGAL repository, see the README below
https://github.com/CGAL/cgal#readme
Other
4.88k stars 1.38k forks source link

Missing symbols (Compilation of mesh simplification) #4239

Closed simonasdmd closed 5 years ago

simonasdmd commented 5 years ago

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?

image

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.

lrineau commented 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.

simonasdmd commented 5 years ago

@lrineau Hello. I added "libgmp" and had the same problem. image

lrineau commented 5 years ago

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.

simonasdmd commented 5 years ago

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? image image image

simonasdmd commented 5 years ago

hi @lrineau If you can compile properly. Could you show me your catalog structure? Thank you.

lrineau commented 5 years ago

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.