Skip to content

Linker error when building with PDAL from master #81

@uclaros

Description

@uclaros

When building wrench in Debug, against PDAL's master branch in Release (after PDAL/PDAL#4888), the build fails while linking:

/usr/bin/ld: CMakeFiles/pdal_wrench.dir/src/clip.cpp.o: in function `pdal::Polygon::Polygon(void*)':
/opt/pdal/include/pdal/Polygon.hpp:62:(.text._ZN4pdal7PolygonC2EPv[_ZN4pdal7PolygonC5EPv]+0x4a): undefined reference to `pdal::Polygon::construct(void*)'
/usr/bin/ld: CMakeFiles/pdal_wrench.dir/src/clip.cpp.o: in function `std::unique_ptr<OGRGeometry, pdal::Geometry::OGRGeometryDeleter>::~unique_ptr()':
/usr/include/c++/15/bits/unique_ptr.h:398:(.text._ZNSt10unique_ptrI11OGRGeometryN4pdal8Geometry18OGRGeometryDeleterEED2Ev[_ZNSt10unique_ptrI11OGRGeometryN4pdal8Geometry18OGRGeometryDeleterEED5Ev]+0x4d): undefined reference to `pdal::Geometry::OGRGeometryDeleter::operator()(OGRGeometry*)'
/usr/bin/ld: CMakeFiles/pdal_wrench.dir/src/clip.cpp.o: in function `std::unique_ptr<pdal::Polygon::PrivateData, pdal::Polygon::PrivateDataDeleter>::~unique_ptr()':
/usr/include/c++/15/bits/unique_ptr.h:398:(.text._ZNSt10unique_ptrIN4pdal7Polygon11PrivateDataENS1_18PrivateDataDeleterEED2Ev[_ZNSt10unique_ptrIN4pdal7Polygon11PrivateDataENS1_18PrivateDataDeleterEED5Ev]+0x4d): undefined reference to `pdal::Polygon::PrivateDataDeleter::operator()(pdal::Polygon::PrivateData*)'
collect2: error: ld returned 1 exit status

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions