Page 1 of 1

error when trying to compile trunk of libgig on windows

Posted: Sun Nov 05, 2023 8:54 pm
by sdwarwick
Downloaded latest trunk ( 11/05/2023) of libgig using MS Visual Studio 2022, tried to compile using CMAKE ( CmakeLists.txt )
Ran into two errors:
1. Required c++20 rather than C++11 in CmakeLists.txt

set(CMAKE_CXX_STANDARD 20) # instead of 11

2. Required adding the following line to gig.h after line 29, as the definition “using ssize_t = SSIZE_T” was not in gig.h

#ifdef _MSC_VER
using ssize_t = SSIZE_T;
#endif

hoping trunk can be updated to reflect whatever needs to change...