Subject: CGAL users discussion list
List archive
- From: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] Library links missing
- Date: Wed, 22 Aug 2018 14:13:02 +0200
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:wotw9Bz5S/qkLEbXCy+O+j09IxM/srCxBDY+r6Qd2+4VIJqq85mqBkHD//Il1AaPAd2Eraocw8Pt8InYEVQa5piAtH1QOLdtbDQizfssogo7HcSeAlf6JvO5JwYzHcBFSUM3tyrjaRsdF8nxfUDdrWOv5jAOBBr/KRB1JuPoEYLOksi7ze+/94HRbglSmDaxfa55IQmrownWqsQYm5ZpJLwryhvOrHtIeuBWyn1tKFmOgRvy5dq+8YB6/ShItP0v68BPUaPhf6QlVrNYFygpM3o05MLwqxbOSxaE62YGXWUXlhpIBBXF7A3/U5zsvCb2qvZx1S+HNsDwULs6Wymt771zRRH1likHOT43/mLZhMN+g61Uog6uqRNkzo7IYoyYLuZycr/TcN4YQ2dKQ8ZfVzZGAoO5d4YDAfcPMvhDoIbnvFsOsRq+CheqBOjyzDFIgWX23aw90+Q9DArK2A0uEMwJsHTRstr1KL0SUOC1wqbS0TrDc/RW2S396YTNfBwqvPaBXal0ccrW00kvFgTFjkmKpYzgOzOYzesNs22B4OphUeKjkXIoqwZ0ojW2wMonl4fHhoUQyl/e9CV5xp44JduiR0FgetGkFIVfuzuGOItxR8MvRXxjtiUiyrAeu5O2czIGxIk5yxPfcfCKcJaE7gjsWeuTOTt1hnFodKihixu98EWs0PDwW8263VpQrCdIkt/BvW0X2RPJ8MiIUP5981+h2TmR0wDT7flJIUUumqraL54t27Axlp8PvUjaEC/7l0f7gLWZdkUj/eio5ODnbav8qpCAMI90jxnyMqUomsOhHeQ1KgoDUmeB9eihyrHu/Vf1TbZUgvEsnaTUsojWJcEBqa64Bw9V3Jwj6xG6Dzq+y9QYmX4HLEhEeBKAk4jlIVTOIPTjAPewhlSjijZrx/TcMrL9BZXNK2DPkK39crZl905c1A0zwMhD6JJbEL4BJOv/VVLwtNzDEhA5Lhe0w/38BdVm1oIeXHqPDbWDPKPTt1+I/OMvLPOWaI8bojauY8QisvXhhHt8lV4GdrSyxrMWbmq5F7JoORa3e33p1506HG0DpRY/QeqirFqYUDlPLzadUqU56y0hGayvBpvEXJHsyvTVxyO8BJxReiZDDniDFH7pc8OPXPJaO3HaGdNojjFRDevpcIQmzxz77FarmYoiFfLd/2gjjbym0dF04+PJkhRrrG57Cs2c1yeGSGQmxzpUFQ9z57h2pAlG8nnGybJx2qUKGtla5vcPWQA/Z8aFkr5KTuvqUweERe+nDVarRtL8XGM0R9M1hsALOwNzR4rkgRfE0C6nRbQSku7TCQ==
Core is required. Update your cmake list to have:
find_package(CGAL QUIET COMPONENTS Core )
Sebastien.
On 08/22/2018 02:08 PM, brainslush wrote:
When I tried to create a straight skeleton from an example I got a linking
error.
==============================================
//usr/bin/ld: CMakeFiles/skeleton.dir/main.cpp.o: in function
`CORE::RCRepImpl<CORE::BigFloatRep>::decRef()':
main.cpp:(.text._ZN4CORE9RCRepImplINS_11BigFloatRepEE6decRefEv[_ZN4CORE9RCRepImplINS_11BigFloatRepEE6decRefEv]+0x52):
undefined reference to `CORE::BigIntRep::operator delete(void*, unsigned
long)'/
==============================================
and many more to CORE::BigIntRep. I probably need to link to another library
but why isn't it included in the /find_package(CGAL QUIET COMPONENTS)/ ?
*My CMAKE file:*
==============================================
/
cmake_minimum_required(VERSION 3.12)
project(skeleton)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_BUILD_TYPE Release)
find_package(CGAL QUIET COMPONENTS)
if (NOT CGAL_FOUND)
message(STATUS "This project requires the CGAL library, and will not be
compiled.")
return()
endif ()
# include helper file
include(${CGAL_USE_FILE})
# Boost and its components
find_package(Boost COMPONENTS thread REQUIRED)
if (NOT Boost_FOUND)
message(STATUS "This project requires the Boost library, and will not be
compiled.")
return()
endif ()
add_to_cached_list(
CGAL_EXECUTABLE_TARGETS
)
add_executable(
skeleton
main.cpp
)
target_link_libraries(
skeleton
${Boost_LIBRARIES}
${CGAL_LIBRARIES}
${CGAL_3RD_PARTY_LIBRARIES}
)/
--
Sent from: http://cgal-discuss.949826.n4.nabble.com/
- [cgal-discuss] Library links missing, brainslush, 08/22/2018
- Re: [cgal-discuss] Library links missing, Sebastien Loriot (GeometryFactory), 08/22/2018
- Re: [cgal-discuss] Library links missing, brainslush, 08/22/2018
- Re: [cgal-discuss] Library links missing, Sebastien Loriot (GeometryFactory), 08/22/2018
Archive powered by MHonArc 2.6.18.