<div dir="ltr">It appears to not be linking the example code. You can ignore those errors.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 11, 2019 at 7:19 PM massoud pourmandi <<a href="mailto:massoud.pourmandi@gmail.com">massoud.pourmandi@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div>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.</div><div>I would appreciate any help, thanks in advance.</div><div><br></div><div>Building Custom Rule C:/pdal/pdal_maintance1.8/PDAL-1.8-maintenance/examples/writing/CMakeLists.txt</div><div>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.</div><div>tutorial.cpp</div><div>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.</div><div>C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\ucrt\stdio.h(1769): note: see declaration of 'sprintf'</div><div>C:\pdal\pdal_maintance1.7\install\include\pdal/Metadata.hpp(586): warning C4800: 'unsigned __int64': forcing value to bool 'true' or 'false' (performance warning)</div><div>C:\pdal\pdal_maintance1.7\install\include\pdal/PipelineManager.hpp(104): warning C4800: 'pdal::Stage *': forcing value to bool 'true' or 'false' (performance warning)</div><div>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</div><div>tutorial.obj : error LNK2019: unresolved external symbol __imp_htonl referenced in function "public: virtual class pdal::BeInserter & __cdecl pdal::BeInserter::operator<<(int)" (??6BeInserter@pdal@@UEAAAEAV01@H@Z)</div><div>tutorial.obj : error LNK2019: unresolved external symbol __imp_htons referenced in function "public: virtual class pdal::BeInserter & __cdecl pdal::BeInserter::operator<<(short)" (??6BeInserter@pdal@@UEAAAEAV01@F@Z)</div><div>tutorial.obj : error LNK2019: unresolved external symbol __imp_ntohl referenced in function "public: virtual class pdal::BeExtractor & __cdecl pdal::BeExtractor::operator>>(int &)" (??5BeExtractor@pdal@@UEAAAEAV01@AEAH@Z)</div><div>tutorial.obj : error LNK2019: unresolved external symbol __imp_ntohs referenced in function "public: virtual class pdal::BeExtractor & __cdecl pdal::BeExtractor::operator>>(short &)" (??5BeExtractor@pdal@@UEAAAEAV01@AEAF@Z)</div><div>C:\pdal\pdal_maintance1.8\PDAL-1.8-maintenance\examples\writing\build\Release\tutorial.exe : fatal error LNK1120: 4 unresolved externals</div></div></div>
_______________________________________________<br>
pdal mailing list<br>
<a href="mailto:pdal@lists.osgeo.org" target="_blank">pdal@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/pdal" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/pdal</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Andrew Bell<br><a href="mailto:andrew.bell.ia@gmail.com" target="_blank">andrew.bell.ia@gmail.com</a></div>