<div dir="ltr">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. </div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 28, 2018 at 10:30 PM, Jesse Kinross-Smith <span dir="ltr"><<a href="mailto:Jesse.Kinross-Smith@bentley.com" target="_blank">Jesse.Kinross-Smith@bentley.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="blue" vlink="purple">
<div class="m_-5582258257996749337WordSection1">
<p class="MsoNormal">These are linker errors – you’ve defined stuff in your #includes, but it doesn’t know where the implementation is.<u></u><u></u></p>
<p class="MsoNormal">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.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Jesse<u></u><u></u></p>
<p class="MsoNormal">--<u></u><u></u></p>
<p class="MsoNormal">Jesse Kinross-Smith<u></u><u></u></p>
<p class="MsoNormal">Senior Software Engineer - BSW<u></u><u></u></p>
<p class="MsoNormal">Bentley Systems, Fremantle<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><b>From:</b> vtkusers [mailto:<a href="mailto:vtkusers-bounces@vtk.org" target="_blank">vtkusers-bounces@vtk.<wbr>org</a>] <b>On Behalf Of
</b>Shrabani Ghosh<br>
<b>Sent:</b> Tuesday, 29 May 2018 10:09 AM<br>
<b>To:</b> Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>><br>
<b>Cc:</b> VTK Users <<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>><br>
<b>Subject:</b> Re: [vtkusers] /vtkDelaunay3D.cxx:533: undefined reference to `vtkEdgeTable::New()<u></u><u></u></p><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Yep see these all are vtk files. I didn't do anything with these files. And I checked the header files are included. <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Mon, May 28, 2018 at 9:17 PM, Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>> wrote:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<p class="MsoNormal">Are you including in your code the #includes for the missing objects?./<u></u><u></u></p>
</div>
<div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Mon, May 28, 2018, 5:51 PM Shrabani Ghosh <<a href="mailto:srbn.ghosh99@gmail.com" target="_blank">srbn.ghosh99@gmail.com</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<p class="MsoNormal">I am getting a lot of error similar like this. I have added include directory<br>
and library directories in the project properties, Why am I getting this<br>
errors.<br>
<br>
/home/sghos003/vtk-5.10.1/<wbr>Filtering/vtkPolyData.cxx:72: undefined reference<br>
to `vtkSimpleCriticalSection::<wbr>Lock()'<br>
/home/sghos003/vtk-5.10.1/<wbr>Filtering/vtkPolyData.cxx:83: undefined reference<br>
to `vtkSimpleCriticalSection::<wbr>Unlock()'<br>
../../vtk-5.10.1/vtk-5.10/lib/<wbr>vtk-5.10/libvtkFiltering.a(<wbr>vtkPolyData.cxx.o):<br>
In function `vtkPolyData::~vtkPolyData()':<br>
/home/sghos003/vtk-5.10.1/<wbr>Filtering/vtkPolyData.cxx:96: undefined reference<br>
to `vtkSimpleCriticalSection::<wbr>Lock()'<br>
/home/sghos003/vtk-5.10.1/<wbr>Filtering/vtkPolyData.cxx:106: undefined reference<br>
to `vtkSimpleCriticalSection::<wbr>Unlock()'<br>
../../vtk-5.10.1/vtk-5.10/lib/<wbr>vtk-5.10/libvtkFiltering.a(<wbr>vtkPolyData.cxx.o):<br>
In function `__static_initialization_and_<wbr>destruction_0(int, int)':<br>
/home/sghos003/vtk-5.10.1/<wbr>Filtering/vtkPolyData.cxx:45: undefined reference<br>
to `vtkSimpleCriticalSection::~<wbr>vtkSimpleCriticalSection()'<br>
../../vtk-5.10.1/vtk-5.10/lib/<wbr>vtk-5.10/libvtkFiltering.a(<wbr>vtkPolyData.cxx.o):<br>
In function `vtkSimpleCriticalSection::<wbr>vtkSimpleCriticalSection()':<br>
/home/sghos003/vtk-5.10.1/<wbr>Common/vtkCriticalSection.h:<wbr>69: undefined<br>
reference to `vtable for vtkSimpleCriticalSection'<br>
/home/sghos003/vtk-5.10.1/<wbr>Common/vtkCriticalSection.h:<wbr>70: undefined<br>
reference to `vtkSimpleCriticalSection::<wbr>Init()'<br>
../../vtk-5.10.1/vtk-5.10/lib/<wbr>vtk-5.10/libvtkFiltering.a(<wbr>vtkPolygon.cxx.o):<br>
In function `vtkPolygon::EvaluatePosition(<wbr>double*, double*, int&, double*,<br>
double&, double*)':<br>
/home/sghos003/vtk-5.10.1/<wbr>Filtering/vtkPolygon.cxx:279: undefined reference<br>
to `vtkPlane::ProjectPoint(<wbr>double*, double*, double*, double*)'<br>
../../vtk-5.10.1/vtk-5.10/lib/<wbr>vtk-5.10/libvtkFiltering.a(<wbr>vtkPolygon.cxx.o):<br>
In function `vtkPolyVertexList::<wbr>RemoveVertex(int, vtkIdList*,<br>
vtkPriorityQueue*)':<br>
/home/sghos003/vtk-5.10.1/<wbr>Filtering/vtkPolygon.cxx:1084: undefined reference<br>
to `vtkPriorityQueue::Insert(<wbr>double, long long)'<br>
/home/sghos003/vtk-5.10.1/<wbr>Filtering/vtkPolygon.cxx:1089: undefined reference<br>
to `vtkPriorityQueue::Insert(<wbr>double, long long)'<br>
../../vtk-5.10.1/vtk-5.10/lib/<wbr>vtk-5.10/libvtkFiltering.a(<wbr>vtkPolygon.cxx.o):<br>
In function `vtkPolygon::<wbr>EarCutTriangulation()':<br>
/home/sghos003/vtk-5.10.1/<wbr>Filtering/vtkPolygon.cxx:1256: undefined reference<br>
to `vtkPriorityQueue::New()'<br>
/home/sghos003/vtk-5.10.1/<wbr>Filtering/vtkPolygon.cxx:1257: undefined reference<br>
to `vtkPriorityQueue::Allocate(<wbr>long long, long long)'<br>
/home/sghos003/vtk-5.10.1/<wbr>Filtering/vtkPolygon.cxx:1263: undefined reference<br>
to `vtkPriorityQueue::Insert(<wbr>double, long long)'<br>
/home/sghos003/vtk-5.10.1/<wbr>Filtering/vtkPolygon.cxx:1280: undefined reference<br>
to `vtkPriorityQueue::Pop(long long)'<br>
/home/sghos003/vtk-5.10.1/<wbr>Filtering/vtkPolygon.cxx:1285: undefined reference<br>
to `vtkPriorityQueue::Pop(long long)'<br>
../../vtk-5.10.1/vtk-5.10/lib/<wbr>vtk-5.10/libvtkFiltering.a(<wbr>vtkPolygon.cxx.o):<br>
In function `vtkPolygon::<wbr>IntersectWithLine(double*, double*, double,<br>
double&, double*, double*, int&)':<br>
/home/sghos003/vtk-5.10.1/<wbr>Filtering/vtkPolygon.cxx:1475: undefined reference<br>
to `vtkPlane::IntersectWithLine(<wbr>double*, double*, double*, double*, double&,<br>
double*)'<br>
../../vtk-5.10.1/vtk-5.10/lib/<wbr>vtk-5.10/libvtkFiltering.a(<wbr>vtkPolygon.cxx.o):<br>
In function `vtkPolygon::<wbr>IntersectPolygonWithPolygon(<wbr>int, double*, double*,<br>
int, double*, double*, double, double*)':<br>
/home/sghos003/vtk-5.10.1/<wbr>Filtering/vtkPolygon.cxx:1713: undefined reference<br>
to `vtkBox::IntersectBox(double*, double*, double*, double*, double&)'<br>
/home/sghos003/vtk-5.10.1/<wbr>Filtering/vtkPolygon.cxx:1718: undefined reference<br>
to `vtkPlane::IntersectWithLine(<wbr>double*, double*, double*, double*, double&,<br>
double*)'<br>
/home/sghos003/vtk-5.10.1/<wbr>Filtering/vtkPolygon.cxx:1749: undefined reference<br>
to `vtkBox::IntersectBox(double*, double*, double*, double*, double&)'<br>
/home/sghos003/vtk-5.10.1/<wbr>Filtering/vtkPolygon.cxx:1754: undefined reference<br>
to `vtkPlane::IntersectWithLine(<wbr>double*, double*, double*, double*, double&,<br>
double*)'<br>
../../vtk-5.10.1/vtk-5.10/lib/<wbr>vtk-5.10/libvtkFiltering.a(<wbr>vtkPolygon.cxx.o):<br>
In function `vtkPriorityQueue::DeleteId(<wbr>long long)':<br>
/home/sghos003/vtk-5.10.1/<wbr>Common/vtkPriorityQueue.h:139: undefined reference<br>
to `vtkPriorityQueue::Pop(long long, double&)'<br>
../../vtk-5.10.1/vtk-5.10/lib/<wbr>vtk-5.10/libvtkFiltering.a(<wbr>vtkQuad.cxx.o): In<br>
function `vtkQuad::EvaluatePosition(<wbr>double*, double*, int&, double*,<br>
double&, double*)':<br>
/home/sghos003/vtk-5.10.1/<wbr>Filtering/vtkQuad.cxx:100: undefined reference to<br>
`vtkPlane::ProjectPoint(<wbr>double*, double*, double*, double*)'<br>
../../vtk-5.10.1/vtk-5.10/lib/<wbr>vtk-5.10/libvtkFiltering.a(<wbr>vtkStreamingDemandDrivenPipeli<wbr>ne.cxx.o):<br>
In function<br>
`<wbr>vtkStreamingDemandDrivenPipeli<wbr>ne::CopyDefaultInformation(<wbr>vtkInformation*,<br>
int, vtkInformationVector**, vtkInformationVector*)':<br>
/home/sghos003/vtk-5.10.1/<wbr>Filtering/<wbr>vtkStreamingDemandDrivenPipeli<wbr>ne.cxx:494:<br>
undefined reference to `vtkExtentTranslator::New()'<br>
../../vtk-5.10.1/vtk-5.10/lib/<wbr>vtk-5.10/libvtkFiltering.a(<wbr>vtkStreamingDemandDrivenPipeli<wbr>ne.cxx.o):<br>
In function<br>
`<wbr>vtkStreamingDemandDrivenPipeli<wbr>ne::GetExtentTranslator(<wbr>vtkInformation*)':<br>
/home/sghos003/vtk-5.10.1/<wbr>Filtering/<wbr>vtkStreamingDemandDrivenPipeli<wbr>ne.cxx:2033:<br>
undefined reference to `vtkExtentTranslator::New()'<br>
../../vtk-5.10.1/vtk-5.10/lib/<wbr>vtk-5.10/libvtkFiltering.a(<wbr>vtkTriangle.cxx.o):<br>
In function `vtkTriangle::<wbr>EvaluatePosition(double*, double*, int&, double*,<br>
double&, double*)':<br>
/home/sghos003/vtk-5.10.1/<wbr>Filtering/vtkTriangle.cxx:96: undefined reference<br>
to `vtkPlane::<wbr>GeneralizedProjectPoint(<wbr>double*, double*, double*, double*)'<br>
../../vtk-5.10.1/vtk-5.10/lib/<wbr>vtk-5.10/libvtkFiltering.a(<wbr>vtkTriangle.cxx.o):<br>
In function `vtkTriangle::<wbr>IntersectWithLine(double*, double*, double,<br>
double&, double*, double*, int&)':<br>
/home/sghos003/vtk-5.10.1/<wbr>Filtering/vtkTriangle.cxx:507: undefined reference<br>
to `vtkPlane::IntersectWithLine(<wbr>double*, double*, double*, double*, double&,<br>
double*)'<br>
../../vtk-5.10.1/vtk-5.10/lib/<wbr>vtk-5.10/libvtkFiltering.a(<wbr>vtkTriangle.cxx.o):<br>
In function `vtkTriangle::ComputeQuadric(<wbr>double*, double*, double*,<br>
vtkQuadric*)':<br>
/home/sghos003/vtk-5.10.1/<wbr>Filtering/vtkTriangle.cxx:<wbr>1100: undefined<br>
reference to `vtkQuadric::SetCoefficients(<wbr>double, double, double, double,<br>
double, double, double, double, double, double)'<br>
../../vtk-5.10.1/vtk-5.10/lib/<wbr>vtk-5.10/libvtkFiltering.a(<wbr>vtkAlgorithm.cxx.o):<br>
In function `vtkAlgorithm::PrintSelf(std::<wbr>ostream&, vtkIndent)':<br>
/home/sghos003/vtk-5.10.1/<wbr>Filtering/vtkAlgorithm.cxx:<wbr>588: undefined<br>
reference to `vtkErrorCode::<wbr>GetStringFromErrorCode(<wbr>unsigned long)'<br>
../../vtk-5.10.1/vtk-5.10/lib/<wbr>vtk-5.10/libvtkFiltering.a(<wbr>vtkDemandDrivenPipeline.cxx.o)<wbr>:<br>
In function `__static_initialization_and_<wbr>destruction_0(int, int)':<br>
/home/sghos003/vtk-5.10.1/<wbr>Common/vtkInstantiator.h:130: undefined reference<br>
to `vtkInstantiatorInitialize::<wbr>vtkInstantiatorInitialize()'<br>
/home/sghos003/vtk-5.10.1/<wbr>Common/vtkInstantiator.h:130: undefined reference<br>
to `vtkInstantiatorInitialize::~<wbr>vtkInstantiatorInitialize()'<br>
../../vtk-5.10.1/vtk-5.10/lib/<wbr>vtk-5.10/libvtkFiltering.a(<wbr>vtkPixel.cxx.o): In<br>
function `vtkPixel::EvaluatePosition(<wbr>double*, double*, int&, double*,<br>
double&, double*)':<br>
/home/sghos003/vtk-5.10.1/<wbr>Filtering/vtkPixel.cxx:80: undefined reference to<br>
`vtkPlane::ProjectPoint(<wbr>double*, double*, double*, double*)'<br>
../../vtk-5.10.1/vtk-5.10/lib/<wbr>vtk-5.10/libvtkFiltering.a(<wbr>vtkPixel.cxx.o): In<br>
function `vtkPixel::IntersectWithLine(<wbr>double*, double*, double, double&,<br>
double*, double*, int&)':<br>
/home/sghos003/vtk-5.10.1/<wbr>Filtering/vtkPixel.cxx:372: undefined reference to<br>
`vtkPlane::IntersectWithLine(<wbr>double*, double*, double*, double*, double&,<br>
double*)'<br>
../../vtk-5.10.1/vtk-5.10/lib/<wbr>vtk-5.10/libvtkFiltering.a(<wbr>vtkPolyhedron.cxx.o):<br>
In function `vtkPolyhedron::vtkPolyhedron(<wbr>)':<br>
/home/sghos003/vtk-5.10.1/<wbr>Filtering/vtkPolyhedron.cxx:<wbr>1336: undefined<br>
reference to `vtkEdgeTable::New()'<br>
../../vtk-5.10.1/vtk-5.10/lib/<wbr>vtk-5.10/libvtkFiltering.a(<wbr>vtkPolyhedron.cxx.o):<br>
In function `vtkPolyhedron::Initialize()':<br>
/home/sghos003/vtk-5.10.1/<wbr>Filtering/vtkPolyhedron.cxx:<wbr>1498: undefined<br>
reference to `vtkEdgeTable::Reset()'<br>
../../vtk-5.10.1/vtk-5.10/lib/<wbr>vtk-5.10/libvtkFiltering.a(<wbr>vtkPolyhedron.cxx.o):<br>
In function `vtkPolyhedron::GenerateEdges(<wbr>)':<br>
/home/sghos003/vtk-5.10.1/<wbr>Filtering/vtkPolyhedron.cxx:<wbr>1583: undefined<br>
reference to `vtkEdgeTable::<wbr>InitEdgeInsertion(long long, int)'<br>
/home/sghos003/vtk-5.10.1/<wbr>Filtering/vtkPolyhedron.cxx:<wbr>1591: undefined<br>
reference to `vtkEdgeTable::IsEdge(long long, long long)'<br>
/home/sghos003/vtk-5.10.1/<wbr>Filtering/vtkPolyhedron.cxx:<wbr>1593: undefined<br>
reference to `vtkEdgeTable::InsertEdge(long long, long long)'<br>
../../vtk-5.10.1/vtk-5.10/lib/<wbr>vtk-5.10/libvtkFiltering.a(<wbr>vtkPolyhedron.cxx.o):<br>
In function `vtkPolyhedron::<wbr>InternalContour(double, int,<br>
vtkIncrementalPointLocator*, vtkDataArray*, vtkDataArray*, vtkPointData*,<br>
vtkPointData*, vtkCellArray*, vtkIdToIdVectorMapType&,<br>
vtkIdToIdVectorMapType&, vtkIdToIdMapType&)':<br>
/home/sghos003/vtk-5.10.1/<wbr>Filtering/vtkPolyhedron.cxx:<wbr>2354: undefined<br>
reference to `vtkEdgeTable::InitTraversal()<wbr>'<br>
/home/sghos003/vtk-5.10.1/<wbr>Filtering/vtkPolyhedron.cxx:<wbr>2355: undefined<br>
reference to `vtkEdgeTable::GetNextEdge(<wbr>long long&, long long&, void*&)'<br>
../../vtk-5.10.1/vtk-5.10/lib/<wbr>vtk-5.10/libvtkFiltering.a(<wbr>vtkPolyhedron.cxx.o):<br>
In function<br>
`vtkPolyhedron::vtkInternal::<wbr>RemoveDuplicatedPointsFromFace<wbr>ArrayAndEdgeTable(vtkPoints*,<br>
vtkIdTypeArray*&, vtkEdgeTable*&, double*)':<br>
/home/sghos003/vtk-5.10.1/<wbr>Filtering/vtkPolyhedron.cxx:<wbr>220: undefined<br>
reference to `vtkEdgeTable::New()'<br>
<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="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=" target="_blank">
http://vtk.1045678.n5.nabble.<wbr>com/VTK-Users-f1224199.html</a><br>
______________________________<wbr>_________________<br>
Powered by <a href="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=" target="_blank">
www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="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=" target="_blank">
http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="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=" target="_blank">
http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>
<br>
Search the list archives at: <a href="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=" target="_blank">
http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="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=" target="_blank">https://vtk.org/mailman/<wbr>listinfo/vtkusers</a><u></u><u></u></p>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div></div></div>
</div>

</blockquote></div><br></div>