[pdal] Unresolved symbols

thejus kambi thejus.kambi at gmail.com
Thu Nov 1 18:42:08 PDT 2018


That was helpful, I am able to compile now. But when I run it. I get.

Unhandled exception at 0x00007FFFBC3CA388 in ConsoleApplication1.exe:
Microsoft C++ exception: std::bad_alloc at memory location
0x0000008955EFC6C0. occurred

Any Idea which library is causing this.


On Thu, Nov 1, 2018 at 8:25 PM Andrew Bell <andrew.bell.ia at gmail.com> wrote:

> That's the link line. Pdal isn't there. Search in your system for
> libpdalcpp.lib and libpdal_util.lib. you'll need to link them in. I don't
> use VS, but I'm sure you can Google to figure out how to add libraries.
> Hope that helps.
>
> On Thu, Nov 1, 2018, 8:32 PM thejus kambi <thejus.kambi at gmail.com wrote:
>
>> Hello Andrew,
>>
>> Is this what are you looking for.
>>
>> /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
>>
>> Warm Regards,
>> Thejus
>>
>>
>> On Thu, Nov 1, 2018 at 6:58 PM Andrew Bell <andrew.bell.ia at gmail.com>
>> wrote:
>>
>>> 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.
>>>
>>> On Thu, Nov 1, 2018, 7:53 PM thejus kambi <thejus.kambi at gmail.com wrote:
>>>
>>>> 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
>>>>
>>>>
>>>> _______________________________________________
>>>> pdal mailing list
>>>> pdal at lists.osgeo.org
>>>> https://lists.osgeo.org/mailman/listinfo/pdal
>>>
>>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pdal/attachments/20181101/8018ab8b/attachment-0001.html>


More information about the pdal mailing list