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

massoud pourmandi massoud.pourmandi at gmail.com
Mon Feb 11 17:18:00 PST 2019


what do you mean "you can ignore those errors". it is not making exe file.

On Tue, Feb 12, 2019 at 4:15 AM Andrew Bell <andrew.bell.ia at gmail.com>
wrote:

> 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/20190212/6a4dea92/attachment.html>


More information about the pdal mailing list