<div dir="ltr"><div dir="ltr"><div>Hello Andrew,</div><div><br></div>Is this what are you looking for.<div><br></div><div>/OUT:"D:\Workspace\PDAL.Wrapper-17660216-Cpp-Sharp-002\x64\Debug\ConsoleApplication1.exe" /MANIFEST /NXCOMPAT /PDB:"D:\Workspace\PDAL.Wrapper-17660216-Cpp-Sharp-002\x64\Debug\ConsoleApplication1.pdb" /DYNAMICBASE "kernel32.lib" "user32.lib" "gdi32.lib" "winspool.lib" "comdlg32.lib" "advapi32.lib" "shell32.lib" "ole32.lib" "oleaut32.lib" "uuid.lib" "odbc32.lib" "odbccp32.lib" /DEBUG /MACHINE:X64 /INCREMENTAL /PGD:"D:\Workspace\PDAL.Wrapper-17660216-Cpp-Sharp-002\x64\Debug\ConsoleApplication1.pgd" /SUBSYSTEM:CONSOLE /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /ManifestFile:"x64\Debug\ConsoleApplication1.exe.intermediate.manifest" /ERRORREPORT:PROMPT /NOLOGO /LIBPATH:"C:\OSGeo4W64\lib" /TLBID:1 </div><div><br></div><div>Warm Regards,</div><div>Thejus<br><div><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Nov 1, 2018 at 6:58 PM Andrew Bell <<a href="mailto:andrew.bell.ia@gmail.com">andrew.bell.ia@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">It looks like you're not linking the PDAL libraries at all. You'd have to provide a link line for us to help you more.</div><br><div class="gmail_quote"><div dir="ltr">On Thu, Nov 1, 2018, 7:53 PM thejus kambi <<a href="mailto:thejus.kambi@gmail.com" target="_blank">thejus.kambi@gmail.com</a> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hello All,<div><br></div><div>I am using the osgeo4W64 binaries for pdal and created a simple console applicaiton with the below code.</div><div><div>// ConsoleApplication1.cpp : Defines the entry point for the console application.</div><div>//</div><div><br></div><div>#include "stdafx.h"</div><div>#include <memory></div><div>#include <pdal/PointTable.hpp></div><div>#include <pdal/PointView.hpp></div><div>#include <pdal/io/LasReader.hpp></div><div>#include <pdal/io/LasHeader.hpp></div><div>#include <pdal/Options.hpp></div><div><br></div><div>int main()</div><div>{</div><div><span style="white-space:pre-wrap">   </span>pdal::Option las_opt("filename", "D:\\Data\\test_part.las");</div><div><span style="white-space:pre-wrap"> </span>pdal::Options las_opts;</div><div><span style="white-space:pre-wrap">  </span>las_opts.add(las_opt);</div><div><span style="white-space:pre-wrap">   </span>pdal::PointTable table;</div><div><span style="white-space:pre-wrap">  </span>pdal::LasReader las_reader;</div><div><span style="white-space:pre-wrap">      </span>las_reader.setOptions(las_opts);</div><div><span style="white-space:pre-wrap"> </span>las_reader.prepare(table);</div><div><span style="white-space:pre-wrap">       </span>pdal::PointViewSet point_view_set = las_reader.execute(table);</div><div><span style="white-space:pre-wrap">   </span>//pdal::PointViewPtr point_view = *point_view_set.begin();</div><div><span style="white-space:pre-wrap">       </span>//pdal::Dimension::IdList dims = point_view->dims();</div><div><span style="white-space:pre-wrap">  </span>//pdal::LasHeader las_header = las_reader.header();</div><div>    return 0;</div><div>}</div></div><div><br></div><div>and I get following errors.</div><div><div>1>ConsoleApplication1.obj : error LNK2019: unresolved external symbol "public: void __cdecl pdal::BOX2D::clear(void)" (?clear@BOX2D@pdal@@QEAAXXZ) referenced in function "public: __cdecl pdal::BOX2D::BOX2D(void)" (??0BOX2D@pdal@@QEAA@XZ)</div><div>1>ConsoleApplication1.obj : error LNK2019: unresolved external symbol "public: void __cdecl pdal::BOX3D::clear(void)" (?clear@BOX3D@pdal@@QEAAXXZ) referenced in function "public: __cdecl pdal::BOX3D::BOX3D(void)" (??0BOX3D@pdal@@QEAA@XZ)</div><div>1>ConsoleApplication1.obj : error LNK2019: unresolved external symbol "public: __cdecl pdal::PointLayout::PointLayout(void)" (??0PointLayout@pdal@@QEAA@XZ) referenced in function "public: __cdecl pdal::PointTable::PointTable(void)" (??0PointTable@pdal@@QEAA@XZ)</div><div>1>ConsoleApplication1.obj : error LNK2019: unresolved external symbol "public: void __cdecl pdal::PointLayout::finalize(void)" (?finalize@PointLayout@pdal@@QEAAXXZ) referenced in function "public: virtual void __cdecl pdal::BasePointTable::finalize(void)" (?finalize@BasePointTable@pdal@@UEAAXXZ)</div><div>1>ConsoleApplication1.obj : error LNK2019: unresolved external symbol "protected: __cdecl pdal::BasePointTable::BasePointTable(class pdal::PointLayout &)" (??0BasePointTable@pdal@@IEAA@AEAVPointLayout@1@@Z) referenced in function "protected: __cdecl pdal::SimplePointTable::SimplePointTable(class pdal::PointLayout &)" (??0SimplePointTable@pdal@@IEAA@AEAVPointLayout@1@@Z)</div><div>1>ConsoleApplication1.obj : error LNK2019: unresolved external symbol "public: virtual __cdecl pdal::BasePointTable::~BasePointTable(void)" (??1BasePointTable@pdal@@UEAA@XZ) referenced in function "public: virtual __cdecl pdal::SimplePointTable::~SimplePointTable(void)" (??1SimplePointTable@pdal@@UEAA@XZ)</div><div>1>ConsoleApplication1.obj : error LNK2001: unresolved external symbol "private: virtual void __cdecl pdal::SimplePointTable::setFieldInternal(enum pdal::Dimension::Id,unsigned __int64,void const *)" (?setFieldInternal@SimplePointTable@pdal@@EEAAXW4Id@Dimension@2@_KPEBX@Z)</div><div>1>ConsoleApplication1.obj : error LNK2001: unresolved external symbol "private: virtual void __cdecl pdal::SimplePointTable::getFieldInternal(enum pdal::Dimension::Id,unsigned __int64,void *)const " (?getFieldInternal@SimplePointTable@pdal@@EEBAXW4Id@Dimension@2@_KPEAX@Z)</div><div>1>ConsoleApplication1.obj : error LNK2019: unresolved external symbol "public: virtual __cdecl pdal::PointTable::~PointTable(void)" (??1PointTable@pdal@@UEAA@XZ) referenced in function "public: virtual void * __cdecl pdal::PointTable::`scalar deleting destructor'(unsigned int)" (??_GPointTable@pdal@@UEAAPEAXI@Z)</div><div>1>ConsoleApplication1.obj : error LNK2001: unresolved external symbol "protected: virtual char * __cdecl pdal::PointTable::getPoint(unsigned __int64)" (?getPoint@PointTable@pdal@@MEAAPEAD_K@Z)</div><div>1>ConsoleApplication1.obj : error LNK2001: unresolved external symbol "private: virtual unsigned __int64 __cdecl pdal::PointTable::addPoint(void)" (?addPoint@PointTable@pdal@@EEAA_KXZ)</div><div>1>ConsoleApplication1.obj : error LNK2019: unresolved external symbol "public: void __cdecl pdal::Options::add(class pdal::Option const &)" (?add@Options@pdal@@QEAAXAEBVOption@2@@Z) referenced in function main</div><div>1>ConsoleApplication1.obj : error LNK2019: unresolved external symbol "public: void __cdecl pdal::Stage::prepare(class pdal::BasePointTable &)" (?prepare@Stage@pdal@@QEAAXAEAVBasePointTable@2@@Z) referenced in function main</div><div>1>ConsoleApplication1.obj : error LNK2019: unresolved external symbol "public: class std::set<class std::shared_ptr<class pdal::PointView>,struct pdal::PointViewLess,class std::allocator<class std::shared_ptr<class pdal::PointView> > > __cdecl pdal::Stage::execute(class pdal::BasePointTable &)" (?execute@Stage@pdal@@QEAA?AV?$set@V?$shared_ptr@VPointView@pdal@@@std@@UPointViewLess@pdal@@V?$allocator@V?$shared_ptr@VPointView@pdal@@@std@@@2@@std@@AEAVBasePointTable@2@@Z) referenced in function main</div><div>1>ConsoleApplication1.obj : error LNK2019: unresolved external symbol "public: __cdecl pdal::LasReader::LasReader(void)" (??0LasReader@pdal@@QEAA@XZ) referenced in function main</div><div>1>ConsoleApplication1.obj : error LNK2019: unresolved external symbol "public: virtual __cdecl pdal::LasReader::~LasReader(void)" (??1LasReader@pdal@@UEAA@XZ) referenced in function "public: void __cdecl pdal::LasReader::`vbase destructor'(void)" (??_DLasReader@pdal@@QEAAXXZ)</div><div>1>D:\Workspace\PDAL.Wrapper-17660216-Cpp-Sharp-002\x64\Debug\ConsoleApplication1.exe : fatal error LNK1120: 16 unresolved externals</div><div>1>Done building project "ConsoleApplication1.vcxproj" -- FAILED.</div></div><div><br></div><div>Any suggestion and help will be appreciated.</div><div><br></div><div>Warm Regards,</div><div>Thejus</div><div><br></div><div><br></div></div></div></div>
_______________________________________________<br>
pdal mailing list<br>
<a href="mailto:pdal@lists.osgeo.org" rel="noreferrer" target="_blank">pdal@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/pdal" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/pdal</a></blockquote></div>
</blockquote></div>