[pdal] Unresolved symbols

thejus kambi thejus.kambi at gmail.com
Thu Nov 1 16:52:49 PDT 2018


Hello All,

I am using the osgeo4W64 binaries for pdal and created a simple console
applicaiton with the below code.
// ConsoleApplication1.cpp : Defines the entry point for the console
application.
//

#include "stdafx.h"
#include <memory>
#include <pdal/PointTable.hpp>
#include <pdal/PointView.hpp>
#include <pdal/io/LasReader.hpp>
#include <pdal/io/LasHeader.hpp>
#include <pdal/Options.hpp>

int main()
{
pdal::Option las_opt("filename", "D:\\Data\\test_part.las");
pdal::Options las_opts;
las_opts.add(las_opt);
pdal::PointTable table;
pdal::LasReader las_reader;
las_reader.setOptions(las_opts);
las_reader.prepare(table);
pdal::PointViewSet point_view_set = las_reader.execute(table);
//pdal::PointViewPtr point_view = *point_view_set.begin();
//pdal::Dimension::IdList dims = point_view->dims();
//pdal::LasHeader las_header = las_reader.header();
    return 0;
}

and I get following errors.
1>ConsoleApplication1.obj : error LNK2019: unresolved external symbol
"public: void __cdecl pdal::BOX2D::clear(void)" (?clear at BOX2D@pdal@@QEAAXXZ)
referenced in function "public: __cdecl pdal::BOX2D::BOX2D(void)"
(??0BOX2D at pdal@@QEAA at XZ)
1>ConsoleApplication1.obj : error LNK2019: unresolved external symbol
"public: void __cdecl pdal::BOX3D::clear(void)" (?clear at BOX3D@pdal@@QEAAXXZ)
referenced in function "public: __cdecl pdal::BOX3D::BOX3D(void)"
(??0BOX3D at pdal@@QEAA at XZ)
1>ConsoleApplication1.obj : error LNK2019: unresolved external symbol
"public: __cdecl pdal::PointLayout::PointLayout(void)" (??0PointLayout at pdal
@@QEAA at XZ) referenced in function "public: __cdecl
pdal::PointTable::PointTable(void)" (??0PointTable at pdal@@QEAA at XZ)
1>ConsoleApplication1.obj : error LNK2019: unresolved external symbol
"public: void __cdecl pdal::PointLayout::finalize(void)"
(?finalize at PointLayout@pdal@@QEAAXXZ) referenced in function "public:
virtual void __cdecl pdal::BasePointTable::finalize(void)"
(?finalize at BasePointTable@pdal@@UEAAXXZ)
1>ConsoleApplication1.obj : error LNK2019: unresolved external symbol
"protected: __cdecl pdal::BasePointTable::BasePointTable(class
pdal::PointLayout &)" (??0BasePointTable at pdal@@IEAA at AEAVPointLayout@1@@Z)
referenced in function "protected: __cdecl
pdal::SimplePointTable::SimplePointTable(class pdal::PointLayout &)"
(??0SimplePointTable at pdal@@IEAA at AEAVPointLayout@1@@Z)
1>ConsoleApplication1.obj : error LNK2019: unresolved external symbol
"public: virtual __cdecl pdal::BasePointTable::~BasePointTable(void)"
(??1BasePointTable at pdal@@UEAA at XZ) referenced in function "public: virtual
__cdecl pdal::SimplePointTable::~SimplePointTable(void)"
(??1SimplePointTable at pdal@@UEAA at XZ)
1>ConsoleApplication1.obj : error LNK2001: unresolved external symbol
"private: virtual void __cdecl
pdal::SimplePointTable::setFieldInternal(enum pdal::Dimension::Id,unsigned
__int64,void const *)" (?setFieldInternal at SimplePointTable@pdal@
@EEAAXW4Id at Dimension@2 at _KPEBX@Z)
1>ConsoleApplication1.obj : error LNK2001: unresolved external symbol
"private: virtual void __cdecl
pdal::SimplePointTable::getFieldInternal(enum pdal::Dimension::Id,unsigned
__int64,void *)const " (?getFieldInternal at SimplePointTable@pdal@
@EEBAXW4Id at Dimension@2 at _KPEAX@Z)
1>ConsoleApplication1.obj : error LNK2019: unresolved external symbol
"public: virtual __cdecl pdal::PointTable::~PointTable(void)"
(??1PointTable at pdal@@UEAA at XZ) referenced in function "public: virtual void
* __cdecl pdal::PointTable::`scalar deleting destructor'(unsigned int)"
(??_GPointTable at pdal@@UEAAPEAXI at Z)
1>ConsoleApplication1.obj : error LNK2001: unresolved external symbol
"protected: virtual char * __cdecl pdal::PointTable::getPoint(unsigned
__int64)" (?getPoint at PointTable@pdal@@MEAAPEAD_K at Z)
1>ConsoleApplication1.obj : error LNK2001: unresolved external symbol
"private: virtual unsigned __int64 __cdecl
pdal::PointTable::addPoint(void)" (?addPoint at PointTable@pdal@@EEAA_KXZ)
1>ConsoleApplication1.obj : error LNK2019: unresolved external symbol
"public: void __cdecl pdal::Options::add(class pdal::Option const &)"
(?add at Options@pdal@@QEAAXAEBVOption at 2@@Z) referenced in function main
1>ConsoleApplication1.obj : error LNK2019: unresolved external symbol
"public: void __cdecl pdal::Stage::prepare(class pdal::BasePointTable &)"
(?prepare at Stage@pdal@@QEAAXAEAVBasePointTable at 2@@Z) referenced in function
main
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 at Stage@pdal@@QEAA?AV?$set at V
?$shared_ptr at VPointView@pdal@@@std@@UPointViewLess at pdal@@V?$allocator at V
?$shared_ptr at VPointView@pdal@@@std@@@2@@std@@AEAVBasePointTable at 2@@Z)
referenced in function main
1>ConsoleApplication1.obj : error LNK2019: unresolved external symbol
"public: __cdecl pdal::LasReader::LasReader(void)" (??0LasReader at pdal
@@QEAA at XZ) referenced in function main
1>ConsoleApplication1.obj : error LNK2019: unresolved external symbol
"public: virtual __cdecl pdal::LasReader::~LasReader(void)"
(??1LasReader at pdal@@UEAA at XZ) referenced in function "public: void __cdecl
pdal::LasReader::`vbase destructor'(void)" (??_DLasReader at pdal@@QEAAXXZ)
1>D:\Workspace\PDAL.Wrapper-17660216-Cpp-Sharp-002\x64\Debug\ConsoleApplication1.exe
: fatal error LNK1120: 16 unresolved externals
1>Done building project "ConsoleApplication1.vcxproj" -- FAILED.

Any suggestion and help will be appreciated.

Warm Regards,
Thejus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pdal/attachments/20181101/a1db59b5/attachment-0001.html>


More information about the pdal mailing list