Open jmckenna opened 1 month ago
I think I need to check that it is null, so instead of if(lockid<0)
maybe if(lockid == NULL)
?
...that gets me a tiny bit further (2 files compiled? yikes)
service.c
zoo-project\zoo-kernel\service.h(82): warning C4244: '=': conversion from '__time64_t' to 'long', possible loss of data
sqlapi.c
zoo-project\zoo-kernel\service.h(82): warning C4244: '=': conversion from '__time64_t' to 'long', possible loss of data
C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um\winsvc.h(133): warning C4005: 'SERVICE_PAUSED': macro redefinition
\zoo-project\zoo-kernel\service.h(183): note: see previous definition of 'SERVICE_PAUSED'
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\memory(3301): error C2027: use of undefined type 'GDALDoublePointsCache'
gdal-git-master\build\install\include\gdal_priv.h(1493): note: see declaration of 'GDALDoublePointsCache'
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\memory(3301): note: the template instantiation context (the oldest one first) is
gdal-git-master\build\install\include\gdal_priv.h(1628): note: see reference to class template instantiation 'std::unique_ptr<GDALDoublePointsCache,std::default_delete<GDALDoublePointsCache>>' being compiled
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\memory(3337): note: see reference to class template instantiation 'std::default_delete<GDALDoublePointsCache>' being compiled
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\memory(3300): note: while compiling class template member function 'void std::default_delete<GDALDoublePointsCache>::operator ()(_Ty *) noexcept const'
with
[
_Ty=GDALDoublePointsCache
]
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\memory(3412): note: see the first reference to 'std::default_delete<GDALDoublePointsCache>::operator ()' in 'std::unique_ptr<GDALDoublePointsCache,std::default_delete<GDALDoublePointsCache>>::~unique_ptr'
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\memory(3301): error C2338: static_assert failed: 'can't delete an incomplete type'
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\memory(3302): warning C4150: deletion of pointer to incomplete type 'GDALDoublePointsCache'; no destructor called
gdal-git-master\build\install\include\gdal_priv.h(1493): note: see declaration of 'GDALDoublePointsCache'
NMAKE : fatal error U1077: return code '0x2'
Stop.
It doesn't seem to like GDAL-master.
I think this would be a huge task, working through this (a month of effort?) Yikes.
I wonder if a system like CMake, for ZOO-Project, is a better plan, than me working a month on MSVC errors.
cross-referenced to MS4W's related ticket at https://ms4w.com/trac/ticket/305
main
branch