I did this
The cmake command line I used to generate Visual Studio solution file:
cmake .. -G "Visual Studio 16 2019" -DCURL_TARGET_WINDOWS_VERSION=0x0600 -DBUILD_CURL_EXE=OFF -DBUILD_SHARED_LIBS=OFF -DCURL_ZLIB=OFF -DCURL_DISABLE_ALTSVC=ON -DCURL_DISABLE_COOKIES=ON -DCURL_DISABLE_DOH=ON -DCURL_DISABLE_GETOPTIONS=ON -DCURL_DISABLE_HSTS=ON -DCURL_DISABLE_LIBCURL_OPTION=ON -DCURL_DISABLE_MIME=ON -DCURL_DISABLE_NETRC=ON -DCURL_DISABLE_NTLM=ON -DCURL_DISABLE_PARSEDATE=ON -DCURL_DISABLE_PROGRESS_METER=ON -DCURL_DISABLE_SHUFFLE_DNS=ON -DCURL_DISABLE_SOCKETPAIR=ON -DCURL_DISABLE_VERBOSE_STRINGS=ON -DHTTP_ONLY=ON -DCURL_ENABLE_SSL=OFF -DUSE_LIBIDN2=OFF -DCURL_USE_LIBPSL=OFF -DCURL_USE_LIBSSH2=OFF -DENABLE_UNIX_SOCKETS=OFF
It generated a solution file without issues, but then it failed to compile with this error:
curl_trc.c(247,1): error C2059: syntax error: 'do'`
Removing Curl_trc_cf_infof definition in curl_trc.c fixed the build for me.
I expected the following
curl should build without errors when CURL_DISABLE_VERBOSE_STRINGS=ON
curl/libcurl version
curl 8.4.0
operating system
Windows
I did this
The cmake command line I used to generate Visual Studio solution file:
It generated a solution file without issues, but then it failed to compile with this error:
Removing
Curl_trc_cf_infofdefinition incurl_trc.cfixed the build for me.I expected the following
curl should build without errors when CURL_DISABLE_VERBOSE_STRINGS=ON
curl/libcurl version
curl 8.4.0
operating system
Windows