Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Undefined symbol while linking against Cgal

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Undefined symbol while linking against Cgal


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Undefined symbol while linking against Cgal
  • Date: Fri, 4 Aug 2017 15:52:45 +0200
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:G3FsMBA/Lg82IpSI4EFrUyQJP3N1i/DPJgcQr6AfoPdwSPT/osbcNUDSrc9gkEXOFd2CrakV26yO6+jJYi8p2d65qncMcZhBBVcuqP49uEgeOvODElDxN/XwbiY3T4xoXV5h+GynYwAOQJ6tL1LdrWev4jEMBx7xKRR6JvjvGo7Vks+7y/2+94fdbghMhzexe69+IAmrpgjNq8cahpdvJLwswRXTuHtIfOpWxWJsJV2Nmhv3+9m98p1+/SlOovwt78FPX7n0cKQ+VrxYES8pM3sp683xtBnMVhWA630BWWgLiBVIAgzF7BbnXpfttybxq+Rw1DWGMcDwULs5Xymp4aV2Rx/ykCoJKiA38G/XhMx3j6xVrhyuqBN9zIHIb4+YL+Z+c6HHcN8GWWZMUMZcWipcCY28dYsPCO8BMP5Wo4fguVQBtgGxBRKwBOPu1DBIgGL906s90+Q7EAHG2xAgFM8KvHrVstr1M6ISXv6pzKnSzTTNb+lZ1ivh6IjPaBAgofSAUbxtesfW0kkvEwTFjk+RqYziIzOZzOENs2yA4upvUOKgkW8nqwVrrjezwccsj5DEi4QIwV7K8iV5xZw6Jdy+SENjZ96rCoBfuDqeN4RoWM8tX2ZouCM8x7YbupC7ZDAHxZYoyhLFdvCLbYiF7gjgWeqPOzt1i3FodKq9ihux60Ss1OLxW8iu3FpXqidInMPAu3IN2hHV98OJUOFy/l271jaKzw3T6v9LIUQzlafDLp4u2L8wlp4KvUXNGy/6hFz6jKGZe0gn4OSo5OPnYrLppp+YKYB4kB3xMqMrmsCnAOQ4NBYBX3SD9Om+27Dv51D1TKtKg/EskaTVrorWKMsYq6KhBg9ayIcj6xKxDze819QYmGEKLElBeBKAlYjpOlbOIOziAfe6h1Shizhrx/XcMb3gBpXBNGTMkLDkfbpl8U5T1BIzzcxD55JTErwOPP3zVVX1tNDBExA5Mhe0zPr6CNVmzYMTQnmPA6+cMKPKq1CE/OMvI++WZI8UojnxMfYl5+S9xUM+zFQSdK3s0ZoMY22jBdxnJV+YaDzimIQvC2AP60AFQebjk0GDXDgbQ3GoXqUgrnEUBYWjAJvZV66ki6CGxjb6VNUCfWRBEFGLDTHtc62LXv4NbGSZJco3wW9MbqSoV4J0jULmjwT90bcyduc=
  • Organization: GeometryFactory

Did you recompile the CGAL library with GCC?

On 08/04/2017 03:41 PM, bebe0705 wrote:
After investigating further, it appears that it's a compiler issue.

The example were compiled with the default Clang compiler.

My application though has to compile with GCC 7 built from source, since
OpenMP which I need is not supported by Clang.

As you will notice hereunder, GCC was retrieved through homebrew via

*brew install gcc --without-multilib
*
I switch compilers by adding the following two lines before project() in my
CMakeLists.txt:
*
set(CMAKE_C_COMPILER /usr/local/Cellar/gcc/7.1.0/bin/gcc-7 CACHE STRING "C
Compiler" FORCE)
set(CMAKE_CXX_COMPILER /usr/local/Cellar/gcc/7.1.0/bin/g++-7 CACHE STRING
"C++ Compiler" FORCE)
*
If I do so in the Poisson_surface_reconstruction_example, then I am getting
the same undefined symbol errors. However removing them and letting the
system use Clang allows the build to proceed.


Any thoughts?



--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Undefined-symbol-while-linking-against-Cgal-tp4662876p4662877.html
Sent from the cgal-discuss mailing list archive at Nabble.com.





Archive powered by MHonArc 2.6.18.

Top of Page