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

Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

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

massoud pourmandi
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@pdal@@UEAAAEAV01@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@pdal@@UEAAAEAV01@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@pdal@@UEAAAEAV01@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@pdal@@UEAAAEAV01@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
[hidden email]
https://lists.osgeo.org/mailman/listinfo/pdal
Reply | Threaded
Open this post in threaded view
|

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

andrew.bell.ia@gmail.com
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 <[hidden email]> 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@pdal@@UEAAAEAV01@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@pdal@@UEAAAEAV01@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@pdal@@UEAAAEAV01@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@pdal@@UEAAAEAV01@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
[hidden email]
https://lists.osgeo.org/mailman/listinfo/pdal


--
Andrew Bell
[hidden email]

_______________________________________________
pdal mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/pdal
Reply | Threaded
Open this post in threaded view
|

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

massoud pourmandi
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 <[hidden email]> 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 <[hidden email]> 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@pdal@@UEAAAEAV01@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@pdal@@UEAAAEAV01@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@pdal@@UEAAAEAV01@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@pdal@@UEAAAEAV01@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
[hidden email]
https://lists.osgeo.org/mailman/listinfo/pdal


--
Andrew Bell
[hidden email]

_______________________________________________
pdal mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/pdal