[vtkusers] /vtkDelaunay3D.cxx:533: undefined reference to `vtkEdgeTable::New()
Shrabani Ghosh
srbn.ghosh99 at gmail.com
Mon May 28 22:35:58 EDT 2018
It's a big project which early implemented. It does not have any cmake. I
am running it on netbeans on ubuntu. I added the include and lib
directories in the project.
On Mon, May 28, 2018 at 10:30 PM, Jesse Kinross-Smith <
Jesse.Kinross-Smith at bentley.com> wrote:
> These are linker errors – you’ve defined stuff in your #includes, but it
> doesn’t know where the implementation is.
>
> When you #include something in your code you also need to include the
> appropriate libraries to your project so that the linker can resolve these
> references.
>
>
>
> Jesse
>
> --
>
> Jesse Kinross-Smith
>
> Senior Software Engineer - BSW
>
> Bentley Systems, Fremantle
>
>
>
> *From:* vtkusers [mailto:vtkusers-bounces at vtk.org] *On Behalf Of *Shrabani
> Ghosh
> *Sent:* Tuesday, 29 May 2018 10:09 AM
> *To:* Bill Lorensen <bill.lorensen at gmail.com>
> *Cc:* VTK Users <vtkusers at vtk.org>
> *Subject:* Re: [vtkusers] /vtkDelaunay3D.cxx:533: undefined reference to
> `vtkEdgeTable::New()
>
>
>
> Yep see these all are vtk files. I didn't do anything with these files.
> And I checked the header files are included.
>
>
>
> On Mon, May 28, 2018 at 9:17 PM, Bill Lorensen <bill.lorensen at gmail.com>
> wrote:
>
> Are you including in your code the #includes for the missing objects?./
>
>
>
> On Mon, May 28, 2018, 5:51 PM Shrabani Ghosh <srbn.ghosh99 at gmail.com>
> wrote:
>
> I am getting a lot of error similar like this. I have added include
> directory
> and library directories in the project properties, Why am I getting this
> errors.
>
> /home/sghos003/vtk-5.10.1/Filtering/vtkPolyData.cxx:72: undefined
> reference
> to `vtkSimpleCriticalSection::Lock()'
> /home/sghos003/vtk-5.10.1/Filtering/vtkPolyData.cxx:83: undefined
> reference
> to `vtkSimpleCriticalSection::Unlock()'
> ../../vtk-5.10.1/vtk-5.10/lib/vtk-5.10/libvtkFiltering.a(
> vtkPolyData.cxx.o):
> In function `vtkPolyData::~vtkPolyData()':
> /home/sghos003/vtk-5.10.1/Filtering/vtkPolyData.cxx:96: undefined
> reference
> to `vtkSimpleCriticalSection::Lock()'
> /home/sghos003/vtk-5.10.1/Filtering/vtkPolyData.cxx:106: undefined
> reference
> to `vtkSimpleCriticalSection::Unlock()'
> ../../vtk-5.10.1/vtk-5.10/lib/vtk-5.10/libvtkFiltering.a(
> vtkPolyData.cxx.o):
> In function `__static_initialization_and_destruction_0(int, int)':
> /home/sghos003/vtk-5.10.1/Filtering/vtkPolyData.cxx:45: undefined
> reference
> to `vtkSimpleCriticalSection::~vtkSimpleCriticalSection()'
> ../../vtk-5.10.1/vtk-5.10/lib/vtk-5.10/libvtkFiltering.a(
> vtkPolyData.cxx.o):
> In function `vtkSimpleCriticalSection::vtkSimpleCriticalSection()':
> /home/sghos003/vtk-5.10.1/Common/vtkCriticalSection.h:69: undefined
> reference to `vtable for vtkSimpleCriticalSection'
> /home/sghos003/vtk-5.10.1/Common/vtkCriticalSection.h:70: undefined
> reference to `vtkSimpleCriticalSection::Init()'
> ../../vtk-5.10.1/vtk-5.10/lib/vtk-5.10/libvtkFiltering.a(
> vtkPolygon.cxx.o):
> In function `vtkPolygon::EvaluatePosition(double*, double*, int&, double*,
> double&, double*)':
> /home/sghos003/vtk-5.10.1/Filtering/vtkPolygon.cxx:279: undefined
> reference
> to `vtkPlane::ProjectPoint(double*, double*, double*, double*)'
> ../../vtk-5.10.1/vtk-5.10/lib/vtk-5.10/libvtkFiltering.a(
> vtkPolygon.cxx.o):
> In function `vtkPolyVertexList::RemoveVertex(int, vtkIdList*,
> vtkPriorityQueue*)':
> /home/sghos003/vtk-5.10.1/Filtering/vtkPolygon.cxx:1084: undefined
> reference
> to `vtkPriorityQueue::Insert(double, long long)'
> /home/sghos003/vtk-5.10.1/Filtering/vtkPolygon.cxx:1089: undefined
> reference
> to `vtkPriorityQueue::Insert(double, long long)'
> ../../vtk-5.10.1/vtk-5.10/lib/vtk-5.10/libvtkFiltering.a(
> vtkPolygon.cxx.o):
> In function `vtkPolygon::EarCutTriangulation()':
> /home/sghos003/vtk-5.10.1/Filtering/vtkPolygon.cxx:1256: undefined
> reference
> to `vtkPriorityQueue::New()'
> /home/sghos003/vtk-5.10.1/Filtering/vtkPolygon.cxx:1257: undefined
> reference
> to `vtkPriorityQueue::Allocate(long long, long long)'
> /home/sghos003/vtk-5.10.1/Filtering/vtkPolygon.cxx:1263: undefined
> reference
> to `vtkPriorityQueue::Insert(double, long long)'
> /home/sghos003/vtk-5.10.1/Filtering/vtkPolygon.cxx:1280: undefined
> reference
> to `vtkPriorityQueue::Pop(long long)'
> /home/sghos003/vtk-5.10.1/Filtering/vtkPolygon.cxx:1285: undefined
> reference
> to `vtkPriorityQueue::Pop(long long)'
> ../../vtk-5.10.1/vtk-5.10/lib/vtk-5.10/libvtkFiltering.a(
> vtkPolygon.cxx.o):
> In function `vtkPolygon::IntersectWithLine(double*, double*, double,
> double&, double*, double*, int&)':
> /home/sghos003/vtk-5.10.1/Filtering/vtkPolygon.cxx:1475: undefined
> reference
> to `vtkPlane::IntersectWithLine(double*, double*, double*, double*,
> double&,
> double*)'
> ../../vtk-5.10.1/vtk-5.10/lib/vtk-5.10/libvtkFiltering.a(
> vtkPolygon.cxx.o):
> In function `vtkPolygon::IntersectPolygonWithPolygon(int, double*,
> double*,
> int, double*, double*, double, double*)':
> /home/sghos003/vtk-5.10.1/Filtering/vtkPolygon.cxx:1713: undefined
> reference
> to `vtkBox::IntersectBox(double*, double*, double*, double*, double&)'
> /home/sghos003/vtk-5.10.1/Filtering/vtkPolygon.cxx:1718: undefined
> reference
> to `vtkPlane::IntersectWithLine(double*, double*, double*, double*,
> double&,
> double*)'
> /home/sghos003/vtk-5.10.1/Filtering/vtkPolygon.cxx:1749: undefined
> reference
> to `vtkBox::IntersectBox(double*, double*, double*, double*, double&)'
> /home/sghos003/vtk-5.10.1/Filtering/vtkPolygon.cxx:1754: undefined
> reference
> to `vtkPlane::IntersectWithLine(double*, double*, double*, double*,
> double&,
> double*)'
> ../../vtk-5.10.1/vtk-5.10/lib/vtk-5.10/libvtkFiltering.a(
> vtkPolygon.cxx.o):
> In function `vtkPriorityQueue::DeleteId(long long)':
> /home/sghos003/vtk-5.10.1/Common/vtkPriorityQueue.h:139: undefined
> reference
> to `vtkPriorityQueue::Pop(long long, double&)'
> ../../vtk-5.10.1/vtk-5.10/lib/vtk-5.10/libvtkFiltering.a(vtkQuad.cxx.o):
> In
> function `vtkQuad::EvaluatePosition(double*, double*, int&, double*,
> double&, double*)':
> /home/sghos003/vtk-5.10.1/Filtering/vtkQuad.cxx:100: undefined reference
> to
> `vtkPlane::ProjectPoint(double*, double*, double*, double*)'
> ../../vtk-5.10.1/vtk-5.10/lib/vtk-5.10/libvtkFiltering.a(
> vtkStreamingDemandDrivenPipeline.cxx.o):
> In function
> `vtkStreamingDemandDrivenPipeline::CopyDefaultInformation(vtkInformation*,
> int, vtkInformationVector**, vtkInformationVector*)':
> /home/sghos003/vtk-5.10.1/Filtering/vtkStreamingDemandDrivenPipeli
> ne.cxx:494:
> undefined reference to `vtkExtentTranslator::New()'
> ../../vtk-5.10.1/vtk-5.10/lib/vtk-5.10/libvtkFiltering.a(
> vtkStreamingDemandDrivenPipeline.cxx.o):
> In function
> `vtkStreamingDemandDrivenPipeline::GetExtentTranslator(vtkInformation*)':
> /home/sghos003/vtk-5.10.1/Filtering/vtkStreamingDemandDrivenPipeli
> ne.cxx:2033:
> undefined reference to `vtkExtentTranslator::New()'
> ../../vtk-5.10.1/vtk-5.10/lib/vtk-5.10/libvtkFiltering.a(
> vtkTriangle.cxx.o):
> In function `vtkTriangle::EvaluatePosition(double*, double*, int&,
> double*,
> double&, double*)':
> /home/sghos003/vtk-5.10.1/Filtering/vtkTriangle.cxx:96: undefined
> reference
> to `vtkPlane::GeneralizedProjectPoint(double*, double*, double*, double*)'
> ../../vtk-5.10.1/vtk-5.10/lib/vtk-5.10/libvtkFiltering.a(
> vtkTriangle.cxx.o):
> In function `vtkTriangle::IntersectWithLine(double*, double*, double,
> double&, double*, double*, int&)':
> /home/sghos003/vtk-5.10.1/Filtering/vtkTriangle.cxx:507: undefined
> reference
> to `vtkPlane::IntersectWithLine(double*, double*, double*, double*,
> double&,
> double*)'
> ../../vtk-5.10.1/vtk-5.10/lib/vtk-5.10/libvtkFiltering.a(
> vtkTriangle.cxx.o):
> In function `vtkTriangle::ComputeQuadric(double*, double*, double*,
> vtkQuadric*)':
> /home/sghos003/vtk-5.10.1/Filtering/vtkTriangle.cxx:1100: undefined
> reference to `vtkQuadric::SetCoefficients(double, double, double, double,
> double, double, double, double, double, double)'
> ../../vtk-5.10.1/vtk-5.10/lib/vtk-5.10/libvtkFiltering.a(
> vtkAlgorithm.cxx.o):
> In function `vtkAlgorithm::PrintSelf(std::ostream&, vtkIndent)':
> /home/sghos003/vtk-5.10.1/Filtering/vtkAlgorithm.cxx:588: undefined
> reference to `vtkErrorCode::GetStringFromErrorCode(unsigned long)'
> ../../vtk-5.10.1/vtk-5.10/lib/vtk-5.10/libvtkFiltering.a(
> vtkDemandDrivenPipeline.cxx.o):
> In function `__static_initialization_and_destruction_0(int, int)':
> /home/sghos003/vtk-5.10.1/Common/vtkInstantiator.h:130: undefined
> reference
> to `vtkInstantiatorInitialize::vtkInstantiatorInitialize()'
> /home/sghos003/vtk-5.10.1/Common/vtkInstantiator.h:130: undefined
> reference
> to `vtkInstantiatorInitialize::~vtkInstantiatorInitialize()'
> ../../vtk-5.10.1/vtk-5.10/lib/vtk-5.10/libvtkFiltering.a(vtkPixel.cxx.o):
> In
> function `vtkPixel::EvaluatePosition(double*, double*, int&, double*,
> double&, double*)':
> /home/sghos003/vtk-5.10.1/Filtering/vtkPixel.cxx:80: undefined reference
> to
> `vtkPlane::ProjectPoint(double*, double*, double*, double*)'
> ../../vtk-5.10.1/vtk-5.10/lib/vtk-5.10/libvtkFiltering.a(vtkPixel.cxx.o):
> In
> function `vtkPixel::IntersectWithLine(double*, double*, double, double&,
> double*, double*, int&)':
> /home/sghos003/vtk-5.10.1/Filtering/vtkPixel.cxx:372: undefined reference
> to
> `vtkPlane::IntersectWithLine(double*, double*, double*, double*, double&,
> double*)'
> ../../vtk-5.10.1/vtk-5.10/lib/vtk-5.10/libvtkFiltering.a(
> vtkPolyhedron.cxx.o):
> In function `vtkPolyhedron::vtkPolyhedron()':
> /home/sghos003/vtk-5.10.1/Filtering/vtkPolyhedron.cxx:1336: undefined
> reference to `vtkEdgeTable::New()'
> ../../vtk-5.10.1/vtk-5.10/lib/vtk-5.10/libvtkFiltering.a(
> vtkPolyhedron.cxx.o):
> In function `vtkPolyhedron::Initialize()':
> /home/sghos003/vtk-5.10.1/Filtering/vtkPolyhedron.cxx:1498: undefined
> reference to `vtkEdgeTable::Reset()'
> ../../vtk-5.10.1/vtk-5.10/lib/vtk-5.10/libvtkFiltering.a(
> vtkPolyhedron.cxx.o):
> In function `vtkPolyhedron::GenerateEdges()':
> /home/sghos003/vtk-5.10.1/Filtering/vtkPolyhedron.cxx:1583: undefined
> reference to `vtkEdgeTable::InitEdgeInsertion(long long, int)'
> /home/sghos003/vtk-5.10.1/Filtering/vtkPolyhedron.cxx:1591: undefined
> reference to `vtkEdgeTable::IsEdge(long long, long long)'
> /home/sghos003/vtk-5.10.1/Filtering/vtkPolyhedron.cxx:1593: undefined
> reference to `vtkEdgeTable::InsertEdge(long long, long long)'
> ../../vtk-5.10.1/vtk-5.10/lib/vtk-5.10/libvtkFiltering.a(
> vtkPolyhedron.cxx.o):
> In function `vtkPolyhedron::InternalContour(double, int,
> vtkIncrementalPointLocator*, vtkDataArray*, vtkDataArray*, vtkPointData*,
> vtkPointData*, vtkCellArray*, vtkIdToIdVectorMapType&,
> vtkIdToIdVectorMapType&, vtkIdToIdMapType&)':
> /home/sghos003/vtk-5.10.1/Filtering/vtkPolyhedron.cxx:2354: undefined
> reference to `vtkEdgeTable::InitTraversal()'
> /home/sghos003/vtk-5.10.1/Filtering/vtkPolyhedron.cxx:2355: undefined
> reference to `vtkEdgeTable::GetNextEdge(long long&, long long&, void*&)'
> ../../vtk-5.10.1/vtk-5.10/lib/vtk-5.10/libvtkFiltering.a(
> vtkPolyhedron.cxx.o):
> In function
> `vtkPolyhedron::vtkInternal::RemoveDuplicatedPointsFromFace
> ArrayAndEdgeTable(vtkPoints*,
> vtkIdTypeArray*&, vtkEdgeTable*&, double*)':
> /home/sghos003/vtk-5.10.1/Filtering/vtkPolyhedron.cxx:220: undefined
> reference to `vtkEdgeTable::New()'
>
>
>
>
> --
> Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__vtk.1045678.n5.nabble.com_VTK-2DUsers-2Df1224199.html&d=DwMFaQ&c=hmGTLOph1qd_VnCqj81HzEWkDaxmYdIWRBdoFggzhj8&r=QPUyrnKdkaGJHD0OTha3x09u1N6qkcvUsRW8n2fg59E&m=VfyJ1Rm6IyL-6lVMuXtY_ZgyDdMGRP0Y2H05P8Lqbl0&s=VD920jmIbWFt-vOlcgThtxQSbD_1FSYLokd0hFr2VGU&e=>
> _______________________________________________
> Powered by www.kitware.com
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.kitware.com&d=DwMFaQ&c=hmGTLOph1qd_VnCqj81HzEWkDaxmYdIWRBdoFggzhj8&r=QPUyrnKdkaGJHD0OTha3x09u1N6qkcvUsRW8n2fg59E&m=VfyJ1Rm6IyL-6lVMuXtY_ZgyDdMGRP0Y2H05P8Lqbl0&s=x3HuTyz9dZZY5UjGYX0ncJQzzXuTiGapVmuO0ARGDzk&e=>
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.kitware.com_opensource_opensource.html&d=DwMFaQ&c=hmGTLOph1qd_VnCqj81HzEWkDaxmYdIWRBdoFggzhj8&r=QPUyrnKdkaGJHD0OTha3x09u1N6qkcvUsRW8n2fg59E&m=VfyJ1Rm6IyL-6lVMuXtY_ZgyDdMGRP0Y2H05P8Lqbl0&s=Uzgvg0Bf03ae36ZwT1DfJfD-A4WdGTNavhbclwXIjME&e=>
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.vtk.org_Wiki_VTK-5FFAQ&d=DwMFaQ&c=hmGTLOph1qd_VnCqj81HzEWkDaxmYdIWRBdoFggzhj8&r=QPUyrnKdkaGJHD0OTha3x09u1N6qkcvUsRW8n2fg59E&m=VfyJ1Rm6IyL-6lVMuXtY_ZgyDdMGRP0Y2H05P8Lqbl0&s=rKNQZcQhgJanGFH47agy5JbvssAJgg4p-awgcPrelWY&e=>
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__markmail.org_search_-3Fq-3Dvtkusers&d=DwMFaQ&c=hmGTLOph1qd_VnCqj81HzEWkDaxmYdIWRBdoFggzhj8&r=QPUyrnKdkaGJHD0OTha3x09u1N6qkcvUsRW8n2fg59E&m=VfyJ1Rm6IyL-6lVMuXtY_ZgyDdMGRP0Y2H05P8Lqbl0&s=S1wJCgCzBKad-j2lnVZ7fTtOUGYzJEFd-YpE1BIA9fM&e=>
>
> Follow this link to subscribe/unsubscribe:
> https://vtk.org/mailman/listinfo/vtkusers
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__vtk.org_mailman_listinfo_vtkusers&d=DwMFaQ&c=hmGTLOph1qd_VnCqj81HzEWkDaxmYdIWRBdoFggzhj8&r=QPUyrnKdkaGJHD0OTha3x09u1N6qkcvUsRW8n2fg59E&m=VfyJ1Rm6IyL-6lVMuXtY_ZgyDdMGRP0Y2H05P8Lqbl0&s=-lIepCST5LY7EBP3rF7Uxi2pYqic5HCtEND0_zRpaw8&e=>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtkusers/attachments/20180528/63db09a4/attachment-0001.html>
More information about the vtkusers
mailing list