Open koomiy opened 1 year ago
That is strange. According to https://learn.microsoft.com/en-us/windows/win32/winprog/windows-data-types#ssize_t , SSIZE_T
should be available after including basetsd.h
Which compiler do you use to compile mycamera.cpp? Also Visual Studio 2019? You mentioned something about cross-compiling?
Yes this is strange. I also use Visual Studio 2019 to compile mycamera.cpp.
Cross-compilation with Cmake was performed to remember dependencies between choreonoid and external source or/and header files (e.g. pcl). All choreonoid project (including mycamera.cpp) was compiled with Visual Studio 2019.
Maybe search your computer for basetsd.h
and check whether SSIZE_T
is defined in there?
Error Details Hello. When compiling pcl with VC++, I get a C2061 syntax error in pcl/io/low_level_io.h(58,17) regarding the identifier 'SSIZE_T'.
Here is the error code. C:\devel\vcpkg\packages\pcl_x64-windows\include\pcl/io/low_level_io.h(58,17): error C2061: 構文エラー: 識別子 'SSIZE_T'
To Reproduce
My development environment is Windows 11, Visual Studio Community 2019. And I use Cmake for compilation.
First of all, vcpkg was installed in the C:/devel directory and pcl was installed via vcpkg. As a result, pcl was installed in C:/devel/vcpkg/packages/pcl_x64-windows.
I'm trying to install pcl as an external library in choreonoid's sample package vnoid. I have written choreonoid/ext/vnoid/src/CmakeList.txt as follows: =================choreonoid/ext/vnoid/src/CmakeList.txt==============
=========================================================
Then, I cross-compiled using the following code:
With that compilation, configure and generate succeeded.
Next, I wrote the following program to obtain a 3D point cloud and attempted to build it. =================choreonoid/ext/vnoid/src/mycamera.cpp==============
========================================================= =================choreonoid/ext/vnoid/src/mycamera.h===============
========================================================= However, it could not be built correctly because of the error described at the beginning of this article.
I would appreciate any insight into this error.