[pdal] unresolved external symbol in examples/writing (VS 2015)

Andrew Bell andrew.bell.ia at gmail.com
Mon Feb 11 17:15:21 PST 2019


It appears to not be linking the example code.  You can ignore those errors.

On Mon, Feb 11, 2019 at 7:19 PM massoud pourmandi <
massoud.pourmandi at gmail.com> wrote:

> when I build an example of PDAL library I'm getting following errors, it
> is originated from Extractor.hpp and Insertor.hpp. did I miss something
> with I'm building PDAL project?. I used OSGeo4W64 for downloading
> dependencies.
> I would appreciate any help, thanks in advance.
>
> Building Custom Rule
> C:/pdal/pdal_maintance1.8/PDAL-1.8-maintenance/examples/writing/CMakeLists.txt
> CMake does not need to re-run because
> C:/pdal/pdal_maintance1.8/PDAL-1.8-maintenance/examples/writing/build/CMakeFiles/generate.stamp
> is up-to-date.
> tutorial.cpp
> C:\pdal\pdal_maintance1.7\install\include\pdal/util/Uuid.hpp(174): warning
> C4996: 'sprintf': This function or variable may be unsafe. Consider using
> sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See
> online help for details.
> C:\Program Files (x86)\Windows
> Kits\10\Include\10.0.14393.0\ucrt\stdio.h(1769): note: see declaration of
> 'sprintf'
> C:\pdal\pdal_maintance1.7\install\include\pdal/Metadata.hpp(586): warning
> C4800: 'unsigned __int64': forcing value to bool 'true' or 'false'
> (performance warning)
> C:\pdal\pdal_maintance1.7\install\include\pdal/PipelineManager.hpp(104):
> warning C4800: 'pdal::Stage *': forcing value to bool 'true' or 'false'
> (performance warning)
> Creating library
> C:/pdal/pdal_maintance1.8/PDAL-1.8-maintenance/examples/writing/build/Release/tutorial.lib
> and object
> C:/pdal/pdal_maintance1.8/PDAL-1.8-maintenance/examples/writing/build/Release/tutorial.exp
> tutorial.obj : error LNK2019: unresolved external symbol __imp_htonl
> referenced in function "public: virtual class pdal::BeInserter & __cdecl
> pdal::BeInserter::operator<<(int)" (??6BeInserter at pdal@@UEAAAEAV01 at H@Z)
> tutorial.obj : error LNK2019: unresolved external symbol __imp_htons
> referenced in function "public: virtual class pdal::BeInserter & __cdecl
> pdal::BeInserter::operator<<(short)" (??6BeInserter at pdal@@UEAAAEAV01 at F@Z)
> tutorial.obj : error LNK2019: unresolved external symbol __imp_ntohl
> referenced in function "public: virtual class pdal::BeExtractor & __cdecl
> pdal::BeExtractor::operator>>(int &)" (??5BeExtractor at pdal
> @@UEAAAEAV01 at AEAH@Z)
> tutorial.obj : error LNK2019: unresolved external symbol __imp_ntohs
> referenced in function "public: virtual class pdal::BeExtractor & __cdecl
> pdal::BeExtractor::operator>>(short &)" (??5BeExtractor at pdal
> @@UEAAAEAV01 at AEAF@Z)
> C:\pdal\pdal_maintance1.8\PDAL-1.8-maintenance\examples\writing\build\Release\tutorial.exe
> : fatal error LNK1120: 4 unresolved externals
> _______________________________________________
> pdal mailing list
> pdal at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/pdal



-- 
Andrew Bell
andrew.bell.ia at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pdal/attachments/20190211/6dff8bbe/attachment.html>


More information about the pdal mailing list