Closed Chota22 closed 1 year ago
Thanks for reporting!
This is nothing we can fix. I looks like the cpr package in vcpkg is broken. We do not maintain the vcpkg package. Please create an issue for it here: https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+cpr
Else, since you are using CMake anyway I suggest you try using fetch_content
to integrate cpr.
Here is an example for that: https://github.com/libcpr/example-cmake-fetch-content
@COM8 Thank you for your response. I would also like to mention the reason I use vcpkg and not fetch_content is that I get a build error. output.txt
I don't really understand your response here.
Based on your given output.txt
you are still using vcpkg: Using CMake toolchain: C:/msys64/vcpkg/scripts/buildsystems/vcpkg.cmake
What happens if you try to compile the fetch_content
example provided here: https://github.com/libcpr/example-cmake-fetch-content
Hey sorry i wasn't clear , here is when i try to build cpr using fetch content in a new project .
Le lun. 12 déc. 2022 à 09:17, Fabian Sauter @.***> a écrit :
I don't really understand your response here. Based on your given output.txt you are still using vcpkg: Using CMake toolchain: C:/msys64/vcpkg/scripts/buildsystems/vcpkg.cmake
What happens if you try to compile the fetch_content example provided here: https://github.com/libcpr/example-cmake-fetch-content
— Reply to this email directly, view it on GitHub https://github.com/libcpr/cpr/issues/859#issuecomment-1346065790, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOLHBFSW7ZRDTZCO7Q5I6S3WM3NRPANCNFSM6AAAAAAS263KHM . You are receiving this because you authored the thread.Message ID: @.***>
cmake_minimum_required(VERSION 3.0.0)
project(Scrapy VERSION 0.1.0)
include(CTest)
enable_testing()
add_executable(main main.cpp)
include(FetchContent)
FetchContent_Declare(cpr GIT_REPOSITORY https://github.com/libcpr/cpr.git
GIT_TAG 871ed52d350214a034f6ef8a3b8f51c5ce1bd400) # The commit hash for 1.9.0. Replace with the latest from: https://github.com/libcpr/cpr/releases
FetchContent_MakeAvailable(cpr)
target_link_libraries(${PROJECT_NAME} PUBLIC cpr::cpr )
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
include(CPack)
#include <iostream>
#include <cpr/cpr.h>
int main(int, char**) {
cpr::Response r = cpr::Get(cpr::Url{"https://api.github.com/repos/libcpr/cpr/contributors"});
r.status_code; // 200
r.header["content-type"]; // application/json; charset=utf-8
r.text;
printf("Sa marche " );
return 0;
}
[main] Configuring folder: test
[proc] Executing command: "C:\Program Files\CMake\bin\cmake.EXE" --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_C_COMPILER:FILEPATH=C:\msys64\usr\bin\gcc.exe -DCMAKE_CXX_COMPILER:FILEPATH=C:\msys64\usr\bin\g++.exe -Sc:/Users/mehdi/Desktop/test -Bc:/Users/mehdi/Desktop/test/build -G "Unix Makefiles"
[cmake] Not searching for unused variables given on the command line.
[cmake] -- C++ Requests CMake Options
[cmake] -- =======================================================
[cmake] -- CPR_GENERATE_COVERAGE: OFF
[cmake] -- CPR_CURL_NOSIGNAL: OFF
[cmake] -- CPR_USE_SYSTEM_GTEST: OFF
[cmake] -- CPR_FORCE_USE_SYSTEM_CURL: OFF
[cmake] -- CPR_ENABLE_SSL: ON
[cmake] -- CPR_FORCE_OPENSSL_BACKEND: OFF
[cmake] -- CPR_FORCE_WINSSL_BACKEND: OFF
[cmake] -- CPR_FORCE_DARWINSSL_BACKEND: OFF
[cmake] -- CPR_FORCE_MBEDTLS_BACKEND: OFF
[cmake] -- CPR_ENABLE_LINTING: OFF
[cmake] -- CPR_ENABLE_CPPCHECK: OFF
[cmake] -- CPR_BUILD_TESTS: OFF
[cmake] -- CPR_BUILD_TESTS_SSL: OFF
[cmake] -- =======================================================
[cmake] -- Automatically detecting SSL backend.
[cmake] -- Detecting SSL backend...
[cmake] -- SSL auto detect: Using WinSSL.
[cmake] -- Configuring build in curl...
[cmake] -- Using CMake version 3.25.0-rc2
[cmake] -- ZLIB_HEADER_VERSION: 1.2.11
[cmake] -- ZLIBNG_HEADER_VERSION: 2.0.6
[cmake] -- Arch detected: 'x86_64'
[cmake] -- Basearch of 'x86_64' has been detected as: 'x86'
[cmake] -- Architecture supports unaligned reads
[cmake] -- Architecture supports unaligned reads of > 4 bytes
[cmake] -- Architecture-specific source files: arch/x86/x86.c;arch/x86/slide_avx.c;arch/x86/chunkset_avx.c;arch/x86/compare258_avx.c;arch/x86/adler32_avx.c;arch/x86/insert_string_sse.c;arch/x86/compare258_sse.c;arch/x86/chunkset_sse.c;arch/x86/slide_sse.c;arch/x86/adler32_ssse3.c;arch/x86/crc_folding.c
[cmake] -- The following features have been enabled:
[cmake]
[cmake] * CMAKE_BUILD_TYPE, Build type: Debug (selected)
[cmake] * WITH_GZFILEOP, Compile with support for gzFile related functions
[cmake] * ZLIB_COMPAT, Compile with zlib compatible API
[cmake] * WITH_OPTIM, Build with optimisation
[cmake] * WITH_NEW_STRATEGIES, Use new strategies
[cmake] * WITH_UNALIGNED, Support unaligned reads on platforms that support it
[cmake] * WITH_AVX2, Build with AVX2
[cmake] * WITH_SSE2, Build with SSE2
[cmake] * WITH_SSSE3, Build with SSSE3
[cmake] * WITH_SSE4, Build with SSE4
[cmake] * WITH_PCLMULQDQ, Build with PCLMULQDQ
[cmake] * AVX2_SLIDEHASH, Support AVX2 optimized slide_hash, using "-mavx2"
[cmake] * AVX_CHUNKSET, Support AVX optimized chunkset, using "-mavx2"
[cmake] * AVX2_COMPARE258, Support AVX2 optimized compare258, using "-mavx2"
[cmake] CMake Warning (dev) at C:/Program Files/CMake/share/cmake-3.25/Modules/FetchContent.cmake:1279 (message):
[cmake] The DOWNLOAD_EXTRACT_TIMESTAMP option was not given and policy CMP0135 is
[cmake] not set. The policy's OLD behavior will be used. When using a URL
[cmake] download, the timestamps of extracted files should preferably be that of
[cmake] the time of extraction, otherwise code that depends on the extracted
[cmake] contents might not be rebuilt if the URL changes. The OLD behavior
[cmake] preserves the timestamps from the archive instead, but this is usually not
[cmake] what you want. Update your project to the NEW behavior or specify the
[cmake] DOWNLOAD_EXTRACT_TIMESTAMP option with a value of true to avoid this
[cmake] robustness issue.
[cmake] Call Stack (most recent call first):
[cmake] build/_deps/cpr-src/CMakeLists.txt:248 (FetchContent_Declare)
[cmake] This warning is for project developers. Use -Wno-dev to suppress it.
[cmake]
[cmake] * AVX2_ADLER32, Support AVX2-accelerated adler32, using "-mavx2"
[cmake] * SSE42_CRC, Support SSE4.2 optimized CRC hash generation, using "-msse4"
[cmake] * SSE42_COMPARE258, Support SSE4.2 optimized compare258, using "-msse4"
[cmake] * SSSE3_ADLER32, Support SSSE3-accelerated adler32, using "-mssse3"
[cmake] * PCLMUL_CRC, Support CRC hash generation using PCLMULQDQ, using "-mssse3 -msse4 -mpclmul"
[cmake]
[cmake] -- The following OPTIONAL packages have been found:
[cmake]
[cmake] * Git
[cmake]
[cmake] -- The following features have been disabled:
[cmake]
[cmake] * ZLIB_ENABLE_TESTS, Build test binaries
[cmake] * ZLIB_DUAL_LINK, Dual link tests against system zlib
[cmake] * WITH_FUZZERS, Build test/fuzz
[cmake] * WITH_NATIVE_INSTRUCTIONS, Instruct the compiler to use the full instruction set on this host (gcc/clang -march=native)
[cmake] * WITH_MAINTAINER_WARNINGS, Build with project maintainer warnings
[cmake] * WITH_CODE_COVERAGE, Enable code coverage reporting
[cmake] * WITH_INFLATE_STRICT, Build with strict inflate distance checking
[cmake] * WITH_INFLATE_ALLOW_INVALID_DIST, Build with zero fill for inflate invalid distances
[cmake] * INSTALL_UTILS, Copy minigzip and minideflate during install
[cmake]
[cmake] -- Enabled curl SSL
[cmake] -- curl version=[7.80.0]
[cmake] -- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
[cmake] -- Could NOT find LibSSH2 (missing: LIBSSH2_LIBRARY LIBSSH2_INCLUDE_DIR)
[cmake] -- Enabled features: SSL IPv6 unixsockets AsynchDNS Largefile SSPI alt-svc HSTS SPNEGO Kerberos NTLM
[cmake] -- Enabled protocols: HTTP HTTPS
[cmake] -- Enabled SSL backends: Schannel
[cmake] -- Configuring done
[cmake] -- Generating done
[cmake] -- Build files have been written to: C:/Users/mehdi/Desktop/test/build
[main] Building folder: test main
[build] Starting build
[proc] Executing command: "C:\Program Files\CMake\bin\cmake.EXE" --build c:/Users/mehdi/Desktop/test/build --config Debug --target main -j 10 --
[build] [ 0%] [32mBuilding C object _deps/curl-build/lib/CMakeFiles/libcurl.dir/altsvc.c.obj[0m
[build] [ 1%] [32mBuilding C object _deps/curl-build/lib/CMakeFiles/libcurl.dir/amigaos.c.obj[0m
[build] [ 1%] [32mBuilding C object _deps/curl-build/lib/CMakeFiles/libcurl.dir/asyn-ares.c.obj[0m
[build] [ 2%] [32mBuilding C object _deps/curl-build/lib/CMakeFiles/libcurl.dir/asyn-thread.c.obj[0m
[build] [ 2%] [32mBuilding C object _deps/curl-build/lib/CMakeFiles/libcurl.dir/base64.c.obj[0m
[build] [ 3%] [32mBuilding C object _deps/curl-build/lib/CMakeFiles/libcurl.dir/bufref.c.obj[0m
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:76,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/altsvc.c:26:
[build] C:/Users/mehdi/Desktop/test/build/_deps/curl-build/lib/curl_config.h:991:19: error: two or more data types in declaration specifiers
[build] 991 | #define in_addr_t unsigned long
[build] | ^~~~~~~~
[build] C:/Users/mehdi/Desktop/test/build/_deps/curl-build/lib/curl_config.h:991:28: error: two or more data types in declaration specifiers
[build] 991 | #define in_addr_t unsigned long
[build] | ^~~~
[build] [ 3%] [32mBuilding C object _deps/curl-build/lib/CMakeFiles/libcurl.dir/c-hyper.c.obj[0m
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:76,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/asyn-ares.c:23:
[build] C:/Users/mehdi/Desktop/test/build/_deps/curl-build/lib/curl_config.h:991:19: error: two or more data types in declaration specifiers
[build] 991 | #define in_addr_t unsigned long
[build] | ^~~~~~~~
[build] C:/Users/mehdi/Desktop/test/build/_deps/curl-build/lib/curl_config.h:991:28: error: two or more data types in declaration specifiers
[build] 991 | #define in_addr_t unsigned long
[build] | ^~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:76,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/amigaos.c:23:
[build] C:/Users/mehdi/Desktop/test/build/_deps/curl-build/lib/curl_config.h:991:19: error: two or more data types in declaration specifiers
[build] 991 | #define in_addr_t unsigned long
[build] | ^~~~~~~~
[build] C:/Users/mehdi/Desktop/test/build/_deps/curl-build/lib/curl_config.h:991:28: error: two or more data types in declaration specifiers
[build] 991 | #define in_addr_t unsigned long
[build] | ^~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:76,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/asyn-thread.c:23:
[build] C:/Users/mehdi/Desktop/test/build/_deps/curl-build/lib/curl_config.h:991:19: error: two or more data types in declaration specifiers
[build] 991 | #define in_addr_t unsigned long
[build] | ^~~~~~~~
[build] C:/Users/mehdi/Desktop/test/build/_deps/curl-build/lib/curl_config.h:991:28: error: two or more data types in declaration specifiers
[build] 991 | #define in_addr_t unsigned long
[build] | ^~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:76,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/bufref.c:23:
[build] C:/Users/mehdi/Desktop/test/build/_deps/curl-build/lib/curl_config.h:991:19: error: two or more data types in declaration specifiers
[build] 991 | #define in_addr_t unsigned long
[build] | ^~~~~~~~
[build] C:/Users/mehdi/Desktop/test/build/_deps/curl-build/lib/curl_config.h:991:28: error: two or more data types in declaration specifiers
[build] 991 | #define in_addr_t unsigned long
[build] | ^~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:76,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/base64.c:25:
[build] C:/Users/mehdi/Desktop/test/build/_deps/curl-build/lib/curl_config.h:991:19: error: two or more data types in declaration specifiers
[build] 991 | #define in_addr_t unsigned long
[build] | ^~~~~~~~
[build] C:/Users/mehdi/Desktop/test/build/_deps/curl-build/lib/curl_config.h:991:28: error: two or more data types in declaration specifiers
[build] 991 | #define in_addr_t unsigned long
[build] | ^~~~
[build] [ 4%] [32mBuilding C object _deps/curl-build/lib/CMakeFiles/libcurl.dir/conncache.c.obj[0m
[build] [ 4%] [32mBuilding C object _deps/curl-build/lib/CMakeFiles/libcurl.dir/connect.c.obj[0m
[build] [ 4%] [32mBuilding C object _deps/curl-build/lib/CMakeFiles/libcurl.dir/content_encoding.c.obj[0m
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:76,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/c-hyper.c:23:
[build] C:/Users/mehdi/Desktop/test/build/_deps/curl-build/lib/curl_config.h:991:19: error: two or more data types in declaration specifiers
[build] 991 | #define in_addr_t unsigned long
[build] | ^~~~~~~~
[build] C:/Users/mehdi/Desktop/test/build/_deps/curl-build/lib/curl_config.h:991:28: error: two or more data types in declaration specifiers
[build] 991 | #define in_addr_t unsigned long
[build] | ^~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:76,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/conncache.c:24:
[build] C:/Users/mehdi/Desktop/test/build/_deps/curl-build/lib/curl_config.h:991:19: error: two or more data types in declaration specifiers
[build] 991 | #define in_addr_t unsigned long
[build] | ^~~~~~~~
[build] C:/Users/mehdi/Desktop/test/build/_deps/curl-build/lib/curl_config.h:991:28: error: two or more data types in declaration specifiers
[build] 991 | #define in_addr_t unsigned long
[build] | ^~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:76,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/connect.c:23:
[build] C:/Users/mehdi/Desktop/test/build/_deps/curl-build/lib/curl_config.h:991:19: error: two or more data types in declaration specifiers
[build] 991 | #define in_addr_t unsigned long
[build] | ^~~~~~~~
[build] C:/Users/mehdi/Desktop/test/build/_deps/curl-build/lib/curl_config.h:991:28: error: two or more data types in declaration specifiers
[build] 991 | #define in_addr_t unsigned long
[build] | ^~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:76,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/content_encoding.c:23:
[build] C:/Users/mehdi/Desktop/test/build/_deps/curl-build/lib/curl_config.h:991:19: error: two or more data types in declaration specifiers
[build] 991 | #define in_addr_t unsigned long
[build] | ^~~~~~~~
[build] C:/Users/mehdi/Desktop/test/build/_deps/curl-build/lib/curl_config.h:991:28: error: two or more data types in declaration specifiers
[build] 991 | #define in_addr_t unsigned long
[build] | ^~~~
[build] In file included from /usr/include/w32api/winsock2.h:56,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/setup-win32.h:46,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:247,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/asyn-ares.c:23:
[build] /usr/include/w32api/psdk_inc/_fd_types.h:100:2: warning: #warning "fd_set and associated macros have been defined in sys/types. This can cause runtime problems with W32 sockets" [-Wcpp]
[build] 100 | #warning "fd_set and associated macros have been defined in sys/types. \
[build] | ^~~~~~~
[build] In file included from /usr/include/w32api/winsock2.h:57,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/setup-win32.h:46,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:247,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/asyn-ares.c:23:
[build] /usr/include/w32api/psdk_inc/_ip_types.h:63:8: error: redefinition of ÔÇÿstruct lingerÔÇÖ
[build] 63 | struct linger {
[build] | ^~~~~~
[build] In file included from /usr/include/sys/socket.h:13,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/system.h:436,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/curl.h:35,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:162,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/asyn-ares.c:23:
[build] /usr/include/cygwin/socket.h:52:8: note: originally defined here
[build] 52 | struct linger {
[build] | ^~~~~~
[build] In file included from /usr/include/w32api/winsock2.h:57,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/setup-win32.h:46,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:247,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/asyn-ares.c:23:
[build] /usr/include/w32api/psdk_inc/_ip_types.h:70:8: error: redefinition of ÔÇÿstruct sockaddrÔÇÖ
[build] 70 | struct sockaddr {
[build] | ^~~~~~~~
[build] In file included from /usr/include/sys/socket.h:13,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/system.h:436,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/curl.h:35,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:162,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/asyn-ares.c:23:
[build] /usr/include/cygwin/socket.h:27:8: note: originally defined here
[build] 27 | struct sockaddr {
[build] | ^~~~~~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/setup-win32.h:46,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:247,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/asyn-ares.c:23:
[build] /usr/include/w32api/winsock2.h:269:10: error: redefinition of ÔÇÿstruct sockaddr_storageÔÇÖ
[build] 269 | struct sockaddr_storage {
[build] | ^~~~~~~~~~~~~~~~
[build] In file included from /usr/include/sys/socket.h:13,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/system.h:436,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/curl.h:35,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:162,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/asyn-ares.c:23:
[build] /usr/include/cygwin/socket.h:39:8: note: originally defined here
[build] 39 | struct sockaddr_storage {
[build] | ^~~~~~~~~~~~~~~~
[build] In file included from /usr/include/w32api/winsock2.h:56,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/setup-win32.h:46,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:247,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/altsvc.c:26:
[build] /usr/include/w32api/psdk_inc/_fd_types.h:100:2: warning: #warning "fd_set and associated macros have been defined in sys/types. This can cause runtime problems with W32 sockets" [-Wcpp]
[build] 100 | #warning "fd_set and associated macros have been defined in sys/types. \
[build] | ^~~~~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/setup-win32.h:46,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:247,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/asyn-ares.c:23:
[build] /usr/include/w32api/winsock2.h:1003:37: error: conflicting types for ÔÇÿacceptÔÇÖ; have ÔÇÿSOCKET(SOCKET, struct sockaddr *, int *)ÔÇÖ {aka ÔÇÿlong long unsigned int(long long unsigned int, struct sockaddr *, int *)ÔÇÖ}
[build] 1003 | WINSOCK_API_LINKAGE SOCKET WSAAPI accept(SOCKET s,struct sockaddr *addr,int *addrlen);
[build] | ^~~~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/system.h:436,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/curl.h:35,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:162,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/asyn-ares.c:23:
[build] /usr/include/sys/socket.h:21:7: note: previous declaration of ÔÇÿacceptÔÇÖ with type ÔÇÿint(int, struct sockaddr *, socklen_t *)ÔÇÖ {aka ÔÇÿint(int, struct sockaddr *, int *)ÔÇÖ}
[build] 21 | int accept (int, struct sockaddr *__peer, socklen_t *);
[build] | ^~~~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/setup-win32.h:46,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:247,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/asyn-ares.c:23:
[build] /usr/include/w32api/winsock2.h:1004:34: error: conflicting types for ÔÇÿbindÔÇÖ; have ÔÇÿint(SOCKET, const struct sockaddr *, int)ÔÇÖ {aka ÔÇÿint(long long unsigned int, const struct sockaddr *, int)ÔÇÖ}
[build] 1004 | WINSOCK_API_LINKAGE int WSAAPI bind(SOCKET s,const struct sockaddr *name,int namelen);
[build] | ^~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/system.h:436,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/curl.h:35,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:162,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/asyn-ares.c:23:
[build] /usr/include/sys/socket.h:23:7: note: previous declaration of ÔÇÿbindÔÇÖ with type ÔÇÿint(int, const struct sockaddr *, socklen_t)ÔÇÖ {aka ÔÇÿint(int, const struct sockaddr *, int)ÔÇÖ}
[build] 23 | int bind (int, const struct sockaddr *__my_addr, socklen_t __addrlen);
[build] | ^~~~
[build] In file included from /usr/include/w32api/winsock2.h:57,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/setup-win32.h:46,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:247,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/altsvc.c:26:
[build] /usr/include/w32api/psdk_inc/_ip_types.h:63:8: error: redefinition of ÔÇÿstruct lingerÔÇÖ
[build] 63 | struct linger {
[build] | ^~~~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/setup-win32.h:46,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:247,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/asyn-ares.c:23:
[build] /usr/include/w32api/winsock2.h:1006:34: error: conflicting types for ÔÇÿconnectÔÇÖ; have ÔÇÿint(SOCKET, const struct sockaddr *, int)ÔÇÖ {aka ÔÇÿint(long long unsigned int, const struct sockaddr *, int)ÔÇÖ}
[build] 1006 | WINSOCK_API_LINKAGE int WSAAPI connect(SOCKET s,const struct sockaddr *name,int namelen);
[build] | ^~~~~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/system.h:436,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/curl.h:35,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:162,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/asyn-ares.c:23:
[build] /usr/include/sys/socket.h:24:7: note: previous declaration of ÔÇÿconnectÔÇÖ with type ÔÇÿint(int, const struct sockaddr *, socklen_t)ÔÇÖ {aka ÔÇÿint(int, const struct sockaddr *, int)ÔÇÖ}
[build] 24 | int connect (int, const struct sockaddr *, socklen_t);
[build] | ^~~~~~~
[build] In file included from /usr/include/sys/socket.h:13,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/system.h:436,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/curl.h:35,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:162,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/altsvc.c:26:
[build] /usr/include/cygwin/socket.h:52:8: note: originally defined here
[build] 52 | struct linger {
[build] | ^~~~~~
[build] In file included from /usr/include/w32api/winsock2.h:57,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/setup-win32.h:46,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:247,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/altsvc.c:26:
[build] /usr/include/w32api/psdk_inc/_ip_types.h:70:8: error: redefinition of ÔÇÿstruct sockaddrÔÇÖ
[build] 70 | struct sockaddr {
[build] | ^~~~~~~~
[build] In file included from /usr/include/sys/socket.h:13,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/system.h:436,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/curl.h:35,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:162,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/altsvc.c:26:
[build] /usr/include/cygwin/socket.h:27:8: note: originally defined here
[build] 27 | struct sockaddr {
[build] | ^~~~~~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/setup-win32.h:46,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:247,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/asyn-ares.c:23:
[build] /usr/include/w32api/winsock2.h:1008:34: error: conflicting types for ÔÇÿgetpeernameÔÇÖ; have ÔÇÿint(SOCKET, struct sockaddr *, int *)ÔÇÖ {aka ÔÇÿint(long long unsigned int, struct sockaddr *, int *)ÔÇÖ}
[build] 1008 | WINSOCK_API_LINKAGE int WSAAPI getpeername(SOCKET s,struct sockaddr *name,int *namelen);
[build] | ^~~~~~~~~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/system.h:436,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/curl.h:35,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:162,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/asyn-ares.c:23:
[build] /usr/include/sys/socket.h:25:7: note: previous declaration of ÔÇÿgetpeernameÔÇÖ with type ÔÇÿint(int, struct sockaddr *, socklen_t *)ÔÇÖ {aka ÔÇÿint(int, struct sockaddr *, int *)ÔÇÖ}
[build] 25 | int getpeername (int, struct sockaddr *__peer, socklen_t *);
[build] | ^~~~~~~~~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/setup-win32.h:46,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:247,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/asyn-ares.c:23:
[build] /usr/include/w32api/winsock2.h:1009:34: error: conflicting types for ÔÇÿgetsocknameÔÇÖ; have ÔÇÿint(SOCKET, struct sockaddr *, int *)ÔÇÖ {aka ÔÇÿint(long long unsigned int, struct sockaddr *, int *)ÔÇÖ}
[build] 1009 | WINSOCK_API_LINKAGE int WSAAPI getsockname(SOCKET s,struct sockaddr *name,int *namelen);
[build] | ^~~~~~~~~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/system.h:436,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/curl.h:35,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:162,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/asyn-ares.c:23:
[build] /usr/include/sys/socket.h:26:7: note: previous declaration of ÔÇÿgetsocknameÔÇÖ with type ÔÇÿint(int, struct sockaddr *, socklen_t *)ÔÇÖ {aka ÔÇÿint(int, struct sockaddr *, int *)ÔÇÖ}
[build] 26 | int getsockname (int, struct sockaddr *__addr, socklen_t *);
[build] | ^~~~~~~~~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/setup-win32.h:46,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:247,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/asyn-ares.c:23:
[build] /usr/include/w32api/winsock2.h:1010:34: error: conflicting types for ÔÇÿgetsockoptÔÇÖ; have ÔÇÿint(SOCKET, int, int, char *, int *)ÔÇÖ {aka ÔÇÿint(long long unsigned int, int, int, char *, int *)ÔÇÖ}
[build] 1010 | WINSOCK_API_LINKAGE int WSAAPI getsockopt(SOCKET s,int level,int optname,char *optval,int *optlen);
[build] | ^~~~~~~~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/system.h:436,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/curl.h:35,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:162,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/asyn-ares.c:23:
[build] /usr/include/sys/socket.h:38:7: note: previous declaration of ÔÇÿgetsockoptÔÇÖ with type ÔÇÿint(int, int, int, void *, socklen_t *)ÔÇÖ {aka ÔÇÿint(int, int, int, void *, int *)ÔÇÖ}
[build] 38 | int getsockopt (int __s, int __level, int __optname, void *__optval,
[build] | ^~~~~~~~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/setup-win32.h:46,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:247,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/asyn-ares.c:23:
[build] /usr/include/w32api/winsock2.h:1020:34: error: conflicting types for ÔÇÿlistenÔÇÖ; have ÔÇÿint(SOCKET, int)ÔÇÖ {aka ÔÇÿint(long long unsigned int, int)ÔÇÖ}
[build] 1020 | WINSOCK_API_LINKAGE int WSAAPI listen(SOCKET s,int backlog);
[build] | ^~~~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/system.h:436,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/curl.h:35,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:162,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/asyn-ares.c:23:
[build] /usr/include/sys/socket.h:27:7: note: previous declaration of ÔÇÿlistenÔÇÖ with type ÔÇÿint(int, int)ÔÇÖ
[build] 27 | int listen (int, int __n);
[build] | ^~~~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/setup-win32.h:46,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:247,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/asyn-ares.c:23:
[build] /usr/include/w32api/winsock2.h:1028:34: error: conflicting types for ÔÇÿrecvÔÇÖ; have ÔÇÿint(SOCKET, char *, int, int)ÔÇÖ {aka ÔÇÿint(long long unsigned int, char *, int, int)ÔÇÖ}
[build] 1028 | WINSOCK_API_LINKAGE int WSAAPI recv(SOCKET s,char *buf,int len,int flags);
[build] | ^~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/system.h:436,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/curl.h:35,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:162,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/asyn-ares.c:23:
[build] /usr/include/sys/socket.h:28:11: note: previous declaration of ÔÇÿrecvÔÇÖ with type ÔÇÿssize_t(int, void *, size_t, int)ÔÇÖ {aka ÔÇÿlong int(int, void *, long unsigned int, int)ÔÇÖ}
[build] 28 | ssize_t recv (int, void *__buff, size_t __len, int __flags);
[build] | ^~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/setup-win32.h:46,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:247,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/asyn-ares.c:23:
[build] /usr/include/w32api/winsock2.h:1029:34: error: conflicting types for ÔÇÿrecvfromÔÇÖ; have ÔÇÿint(SOCKET, char *, int, int, struct sockaddr *, int *)ÔÇÖ {aka ÔÇÿint(long long unsigned int, char *, int, int, struct sockaddr *, int *)ÔÇÖ}
[build] 1029 | WINSOCK_API_LINKAGE int WSAAPI recvfrom(SOCKET s,char *buf,int len,int flags,struct sockaddr *from,int *fromlen);
[build] | ^~~~~~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/system.h:436,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/curl.h:35,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:162,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/asyn-ares.c:23:
[build] /usr/include/sys/socket.h:29:11: note: previous declaration of ÔÇÿrecvfromÔÇÖ with type ÔÇÿssize_t(int, void *, size_t, int, struct sockaddr *, socklen_t *)ÔÇÖ {aka ÔÇÿlong int(int, void *, long unsigned int, int, struct sockaddr *, int *)ÔÇÖ}
[build] 29 | ssize_t recvfrom (int, void *__buff, size_t __len, int __flags,
[build] | ^~~~~~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/setup-win32.h:46,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:247,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/asyn-ares.c:23:
[build] /usr/include/w32api/winsock2.h:1031:34: error: conflicting types for ÔÇÿselectÔÇÖ; have ÔÇÿint(int, fd_set *, fd_set *, fd_set *, struct __ms_timeval * const)ÔÇÖ
[build] 1031 | WINSOCK_API_LINKAGE int WSAAPI select(int nfds,fd_set *readfds,fd_set *writefds,fd_set *exceptfds,const PTIMEVAL timeout);
[build] | ^~~~~~
[build] In file included from /usr/include/sys/types.h:50,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/system.h:430,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/curl.h:35,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:162,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/asyn-ares.c:23:
[build] /usr/include/sys/select.h:76:5: note: previous declaration of ÔÇÿselectÔÇÖ with type ÔÇÿint(int, fd_set *, fd_set *, fd_set *, struct timeval *)ÔÇÖ
[build] 76 | int select __P ((int __n, fd_set *__readfds, fd_set *__writefds,
[build] | ^~~~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/setup-win32.h:46,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:247,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/asyn-ares.c:23:
[build] /usr/include/w32api/winsock2.h:1033:34: error: conflicting types for ÔÇÿsendÔÇÖ; have ÔÇÿint(SOCKET, const char *, int, int)ÔÇÖ {aka ÔÇÿint(long long unsigned int, const char *, int, int)ÔÇÖ}
[build] 1033 | WINSOCK_API_LINKAGE int WSAAPI send(SOCKET s,const char *buf,int len,int flags);
[build] | ^~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/system.h:436,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/curl.h:35,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:162,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/asyn-ares.c:23:
[build] /usr/include/sys/socket.h:32:11: note: previous declaration of ÔÇÿsendÔÇÖ with type ÔÇÿssize_t(int, const void *, size_t, int)ÔÇÖ {aka ÔÇÿlong int(int, const void *, long unsigned int, int)ÔÇÖ}
[build] 32 | ssize_t send (int, const void *__buff, size_t __len, int __flags);
[build] | ^~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/setup-win32.h:46,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:247,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/asyn-ares.c:23:
[build] /usr/include/w32api/winsock2.h:1034:34: error: conflicting types for ÔÇÿsendtoÔÇÖ; have ÔÇÿint(SOCKET, const char *, int, int, const struct sockaddr *, int)ÔÇÖ {aka ÔÇÿint(long long unsigned int, const char *, int, int, const struct sockaddr *, int)ÔÇÖ}
[build] 1034 | WINSOCK_API_LINKAGE int WSAAPI sendto(SOCKET s,const char *buf,int len,int flags,const struct sockaddr *to,int tolen);
[build] | ^~~~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/system.h:436,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/curl.h:35,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:162,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/asyn-ares.c:23:
[build] /usr/include/sys/socket.h:34:11: note: previous declaration of ÔÇÿsendtoÔÇÖ with type ÔÇÿssize_t(int, const void *, size_t, int, const struct sockaddr *, socklen_t)ÔÇÖ {aka ÔÇÿlong int(int, const void *, long unsigned int, int, const struct sockaddr *, int)ÔÇÖ}
[build] 34 | ssize_t sendto (int, const void *, size_t __len, int __flags,
[build] | ^~~~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/setup-win32.h:46,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:247,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/asyn-ares.c:23:
[build] /usr/include/w32api/winsock2.h:1035:34: error: conflicting types for ÔÇÿsetsockoptÔÇÖ; have ÔÇÿint(SOCKET, int, int, const char *, int)ÔÇÖ {aka ÔÇÿint(long long unsigned int, int, int, const char *, int)ÔÇÖ}
[build] 1035 | WINSOCK_API_LINKAGE int WSAAPI setsockopt(SOCKET s,int level,int optname,const char *optval,int optlen);
[build] | ^~~~~~~~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/system.h:436,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/curl.h:35,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:162,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/asyn-ares.c:23:
[build] /usr/include/sys/socket.h:36:7: note: previous declaration of ÔÇÿsetsockoptÔÇÖ with type ÔÇÿint(int, int, int, const void *, socklen_t)ÔÇÖ {aka ÔÇÿint(int, int, int, const void *, int)ÔÇÖ}
[build] 36 | int setsockopt (int __s, int __level, int __optname, const void *optval,
[build] | ^~~~~~~~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/setup-win32.h:46,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:247,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/asyn-ares.c:23:
[build] /usr/include/w32api/winsock2.h:1036:34: error: conflicting types for ÔÇÿshutdownÔÇÖ; have ÔÇÿint(SOCKET, int)ÔÇÖ {aka ÔÇÿint(long long unsigned int, int)ÔÇÖ}
[build] 1036 | WINSOCK_API_LINKAGE int WSAAPI shutdown(SOCKET s,int how);
[build] | ^~~~~~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/system.h:436,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/curl.h:35,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:162,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/asyn-ares.c:23:
[build] /usr/include/sys/socket.h:40:7: note: previous declaration of ÔÇÿshutdownÔÇÖ with type ÔÇÿint(int, int)ÔÇÖ
[build] 40 | int shutdown (int, int);
[build] | ^~~~~~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/setup-win32.h:46,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:247,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/asyn-ares.c:23:
[build] /usr/include/w32api/winsock2.h:1037:37: error: conflicting types for ÔÇÿsocketÔÇÖ; have ÔÇÿSOCKET(int, int, int)ÔÇÖ {aka ÔÇÿlong long unsigned int(int, int, int)ÔÇÖ}
[build] 1037 | WINSOCK_API_LINKAGE SOCKET WSAAPI socket(int af,int type,int protocol);
[build] | ^~~~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/system.h:436,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/curl.h:35,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:162,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/asyn-ares.c:23:
[build] /usr/include/sys/socket.h:41:7: note: previous declaration of ÔÇÿsocketÔÇÖ with type ÔÇÿint(int, int, int)ÔÇÖ
[build] 41 | int socket (int __family, int __type, int __protocol);
[build] | ^~~~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/setup-win32.h:46,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:247,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/altsvc.c:26:
[build] /usr/include/w32api/winsock2.h:269:10: error: redefinition of ÔÇÿstruct sockaddr_storageÔÇÖ
[build] 269 | struct sockaddr_storage {
[build] | ^~~~~~~~~~~~~~~~
[build] In file included from /usr/include/sys/socket.h:13,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/system.h:436,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/curl.h:35,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:162,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/altsvc.c:26:
[build] /usr/include/cygwin/socket.h:39:8: note: originally defined here
[build] 39 | struct sockaddr_storage {
[build] | ^~~~~~~~~~~~~~~~
[build] In file included from /usr/include/w32api/winsock2.h:56,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/setup-win32.h:46,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:247,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/amigaos.c:23:
[build] /usr/include/w32api/psdk_inc/_fd_types.h:100:2: warning: #warning "fd_set and associated macros have been defined in sys/types. This can cause runtime problems with W32 sockets" [-Wcpp]
[build] 100 | #warning "fd_set and associated macros have been defined in sys/types. \
[build] | ^~~~~~~
[build] In file included from /usr/include/w32api/winsock2.h:57,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/setup-win32.h:46,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:247,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/amigaos.c:23:
[build] /usr/include/w32api/psdk_inc/_ip_types.h:63:8: error: redefinition of ÔÇÿstruct lingerÔÇÖ
[build] 63 | struct linger {
[build] | ^~~~~~
[build] In file included from /usr/include/sys/socket.h:13,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/system.h:436,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/curl.h:35,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:162,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/amigaos.c:23:
[build] /usr/include/cygwin/socket.h:52:8: note: originally defined here
[build] 52 | struct linger {
[build] | ^~~~~~
[build] In file included from /usr/include/w32api/winsock2.h:57,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/setup-win32.h:46,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:247,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/amigaos.c:23:
[build] /usr/include/w32api/psdk_inc/_ip_types.h:70:8: error: redefinition of ÔÇÿstruct sockaddrÔÇÖ
[build] 70 | struct sockaddr {
[build] | ^~~~~~~~
[build] In file included from /usr/include/sys/socket.h:13,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/system.h:436,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/curl.h:35,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:162,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/amigaos.c:23:
[build] /usr/include/cygwin/socket.h:27:8: note: originally defined here
[build] 27 | struct sockaddr {
[build] | ^~~~~~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/setup-win32.h:46,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:247,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/altsvc.c:26:
[build] /usr/include/w32api/winsock2.h:1003:37: error: conflicting types for ÔÇÿacceptÔÇÖ; have ÔÇÿSOCKET(SOCKET, struct sockaddr *, int *)ÔÇÖ {aka ÔÇÿlong long unsigned int(long long unsigned int, struct sockaddr *, int *)ÔÇÖ}
[build] 1003 | WINSOCK_API_LINKAGE SOCKET WSAAPI accept(SOCKET s,struct sockaddr *addr,int *addrlen);
[build] | ^~~~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/system.h:436,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/curl.h:35,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:162,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/altsvc.c:26:
[build] /usr/include/sys/socket.h:21:7: note: previous declaration of ÔÇÿacceptÔÇÖ with type ÔÇÿint(int, struct sockaddr *, socklen_t *)ÔÇÖ {aka ÔÇÿint(int, struct sockaddr *, int *)ÔÇÖ}
[build] 21 | int accept (int, struct sockaddr *__peer, socklen_t *);
[build] | ^~~~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/setup-win32.h:46,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:247,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/altsvc.c:26:
[build] /usr/include/w32api/winsock2.h:1004:34: error: conflicting types for ÔÇÿbindÔÇÖ; have ÔÇÿint(SOCKET, const struct sockaddr *, int)ÔÇÖ {aka ÔÇÿint(long long unsigned int, const struct sockaddr *, int)ÔÇÖ}
[build] 1004 | WINSOCK_API_LINKAGE int WSAAPI bind(SOCKET s,const struct sockaddr *name,int namelen);
[build] | ^~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/system.h:436,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/curl.h:35,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:162,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/altsvc.c:26:
[build] /usr/include/sys/socket.h:23:7: note: previous declaration of ÔÇÿbindÔÇÖ with type ÔÇÿint(int, const struct sockaddr *, socklen_t)ÔÇÖ {aka ÔÇÿint(int, const struct sockaddr *, int)ÔÇÖ}
[build] 23 | int bind (int, const struct sockaddr *__my_addr, socklen_t __addrlen);
[build] | ^~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/setup-win32.h:46,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:247,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/altsvc.c:26:
[build] /usr/include/w32api/winsock2.h:1006:34: error: conflicting types for ÔÇÿconnectÔÇÖ; have ÔÇÿint(SOCKET, const struct sockaddr *, int)ÔÇÖ {aka ÔÇÿint(long long unsigned int, const struct sockaddr *, int)ÔÇÖ}
[build] 1006 | WINSOCK_API_LINKAGE int WSAAPI connect(SOCKET s,const struct sockaddr *name,int namelen);
[build] | ^~~~~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/system.h:436,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/curl.h:35,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:162,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/altsvc.c:26:
[build] /usr/include/sys/socket.h:24:7: note: previous declaration of ÔÇÿconnectÔÇÖ with type ÔÇÿint(int, const struct sockaddr *, socklen_t)ÔÇÖ {aka ÔÇÿint(int, const struct sockaddr *, int)ÔÇÖ}
[build] 24 | int connect (int, const struct sockaddr *, socklen_t);
[build] | ^~~~~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/setup-win32.h:46,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:247,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/altsvc.c:26:
[build] /usr/include/w32api/winsock2.h:1008:34: error: conflicting types for ÔÇÿgetpeernameÔÇÖ; have ÔÇÿint(SOCKET, struct sockaddr *, int *)ÔÇÖ {aka ÔÇÿint(long long unsigned int, struct sockaddr *, int *)ÔÇÖ}
[build] 1008 | WINSOCK_API_LINKAGE int WSAAPI getpeername(SOCKET s,struct sockaddr *name,int *namelen);
[build] | ^~~~~~~~~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/system.h:436,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/curl.h:35,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:162,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/altsvc.c:26:
[build] /usr/include/sys/socket.h:25:7: note: previous declaration of ÔÇÿgetpeernameÔÇÖ with type ÔÇÿint(int, struct sockaddr *, socklen_t *)ÔÇÖ {aka ÔÇÿint(int, struct sockaddr *, int *)ÔÇÖ}
[build] 25 | int getpeername (int, struct sockaddr *__peer, socklen_t *);
[build] | ^~~~~~~~~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/setup-win32.h:46,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:247,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/altsvc.c:26:
[build] /usr/include/w32api/winsock2.h:1009:34: error: conflicting types for ÔÇÿgetsocknameÔÇÖ; have ÔÇÿint(SOCKET, struct sockaddr *, int *)ÔÇÖ {aka ÔÇÿint(long long unsigned int, struct sockaddr *, int *)ÔÇÖ}
[build] 1009 | WINSOCK_API_LINKAGE int WSAAPI getsockname(SOCKET s,struct sockaddr *name,int *namelen);
[build] | ^~~~~~~~~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/system.h:436,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/curl.h:35,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:162,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/altsvc.c:26:
[build] /usr/include/sys/socket.h:26:7: note: previous declaration of ÔÇÿgetsocknameÔÇÖ with type ÔÇÿint(int, struct sockaddr *, socklen_t *)ÔÇÖ {aka ÔÇÿint(int, struct sockaddr *, int *)ÔÇÖ}
[build] 26 | int getsockname (int, struct sockaddr *__addr, socklen_t *);
[build] | ^~~~~~~~~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/setup-win32.h:46,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:247,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/altsvc.c:26:
[build] /usr/include/w32api/winsock2.h:1010:34: error: conflicting types for ÔÇÿgetsockoptÔÇÖ; have ÔÇÿint(SOCKET, int, int, char *, int *)ÔÇÖ {aka ÔÇÿint(long long unsigned int, int, int, char *, int *)ÔÇÖ}
[build] 1010 | WINSOCK_API_LINKAGE int WSAAPI getsockopt(SOCKET s,int level,int optname,char *optval,int *optlen);
[build] | ^~~~~~~~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/system.h:436,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/curl.h:35,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:162,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/altsvc.c:26:
[build] /usr/include/sys/socket.h:38:7: note: previous declaration of ÔÇÿgetsockoptÔÇÖ with type ÔÇÿint(int, int, int, void *, socklen_t *)ÔÇÖ {aka ÔÇÿint(int, int, int, void *, int *)ÔÇÖ}
[build] 38 | int getsockopt (int __s, int __level, int __optname, void *__optval,
[build] | ^~~~~~~~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/setup-win32.h:46,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:247,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/altsvc.c:26:
[build] /usr/include/w32api/winsock2.h:1020:34: error: conflicting types for ÔÇÿlistenÔÇÖ; have ÔÇÿint(SOCKET, int)ÔÇÖ {aka ÔÇÿint(long long unsigned int, int)ÔÇÖ}
[build] 1020 | WINSOCK_API_LINKAGE int WSAAPI listen(SOCKET s,int backlog);
[build] | ^~~~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/system.h:436,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/curl.h:35,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:162,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/altsvc.c:26:
[build] /usr/include/sys/socket.h:27:7: note: previous declaration of ÔÇÿlistenÔÇÖ with type ÔÇÿint(int, int)ÔÇÖ
[build] 27 | int listen (int, int __n);
[build] | ^~~~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/setup-win32.h:46,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:247,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/altsvc.c:26:
[build] /usr/include/w32api/winsock2.h:1028:34: error: conflicting types for ÔÇÿrecvÔÇÖ; have ÔÇÿint(SOCKET, char *, int, int)ÔÇÖ {aka ÔÇÿint(long long unsigned int, char *, int, int)ÔÇÖ}
[build] 1028 | WINSOCK_API_LINKAGE int WSAAPI recv(SOCKET s,char *buf,int len,int flags);
[build] | ^~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/system.h:436,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/curl.h:35,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:162,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/altsvc.c:26:
[build] /usr/include/sys/socket.h:28:11: note: previous declaration of ÔÇÿrecvÔÇÖ with type ÔÇÿssize_t(int, void *, size_t, int)ÔÇÖ {aka ÔÇÿlong int(int, void *, long unsigned int, int)ÔÇÖ}
[build] 28 | ssize_t recv (int, void *__buff, size_t __len, int __flags);
[build] | ^~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/setup-win32.h:46,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:247,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/altsvc.c:26:
[build] /usr/include/w32api/winsock2.h:1029:34: error: conflicting types for ÔÇÿrecvfromÔÇÖ; have ÔÇÿint(SOCKET, char *, int, int, struct sockaddr *, int *)ÔÇÖ {aka ÔÇÿint(long long unsigned int, char *, int, int, struct sockaddr *, int *)ÔÇÖ}
[build] 1029 | WINSOCK_API_LINKAGE int WSAAPI recvfrom(SOCKET s,char *buf,int len,int flags,struct sockaddr *from,int *fromlen);
[build] | ^~~~~~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/system.h:436,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/curl.h:35,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:162,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/altsvc.c:26:
[build] /usr/include/sys/socket.h:29:11: note: previous declaration of ÔÇÿrecvfromÔÇÖ with type ÔÇÿssize_t(int, void *, size_t, int, struct sockaddr *, socklen_t *)ÔÇÖ {aka ÔÇÿlong int(int, void *, long unsigned int, int, struct sockaddr *, int *)ÔÇÖ}
[build] 29 | ssize_t recvfrom (int, void *__buff, size_t __len, int __flags,
[build] | ^~~~~~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/setup-win32.h:46,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:247,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/altsvc.c:26:
[build] /usr/include/w32api/winsock2.h:1031:34: error: conflicting types for ÔÇÿselectÔÇÖ; have ÔÇÿint(int, fd_set *, fd_set *, fd_set *, struct __ms_timeval * const)ÔÇÖ
[build] 1031 | WINSOCK_API_LINKAGE int WSAAPI select(int nfds,fd_set *readfds,fd_set *writefds,fd_set *exceptfds,const PTIMEVAL timeout);
[build] | ^~~~~~
[build] In file included from /usr/include/sys/types.h:50,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/system.h:430,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/curl.h:35,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:162,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/altsvc.c:26:
[build] /usr/include/sys/select.h:76:5: note: previous declaration of ÔÇÿselectÔÇÖ with type ÔÇÿint(int, fd_set *, fd_set *, fd_set *, struct timeval *)ÔÇÖ
[build] 76 | int select __P ((int __n, fd_set *__readfds, fd_set *__writefds,
[build] | ^~~~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/setup-win32.h:46,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:247,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/altsvc.c:26:
[build] /usr/include/w32api/winsock2.h:1033:34: error: conflicting types for ÔÇÿsendÔÇÖ; have ÔÇÿint(SOCKET, const char *, int, int)ÔÇÖ {aka ÔÇÿint(long long unsigned int, const char *, int, int)ÔÇÖ}
[build] 1033 | WINSOCK_API_LINKAGE int WSAAPI send(SOCKET s,const char *buf,int len,int flags);
[build] | ^~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/system.h:436,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/curl.h:35,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:162,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/altsvc.c:26:
[build] /usr/include/sys/socket.h:32:11: note: previous declaration of ÔÇÿsendÔÇÖ with type ÔÇÿssize_t(int, const void *, size_t, int)ÔÇÖ {aka ÔÇÿlong int(int, const void *, long unsigned int, int)ÔÇÖ}
[build] 32 | ssize_t send (int, const void *__buff, size_t __len, int __flags);
[build] | ^~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/setup-win32.h:46,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:247,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/altsvc.c:26:
[build] /usr/include/w32api/winsock2.h:1034:34: error: conflicting types for ÔÇÿsendtoÔÇÖ; have ÔÇÿint(SOCKET, const char *, int, int, const struct sockaddr *, int)ÔÇÖ {aka ÔÇÿint(long long unsigned int, const char *, int, int, const struct sockaddr *, int)ÔÇÖ}
[build] 1034 | WINSOCK_API_LINKAGE int WSAAPI sendto(SOCKET s,const char *buf,int len,int flags,const struct sockaddr *to,int tolen);
[build] | ^~~~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/system.h:436,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/curl.h:35,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:162,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/altsvc.c:26:
[build] /usr/include/sys/socket.h:34:11: note: previous declaration of ÔÇÿsendtoÔÇÖ with type ÔÇÿssize_t(int, const void *, size_t, int, const struct sockaddr *, socklen_t)ÔÇÖ {aka ÔÇÿlong int(int, const void *, long unsigned int, int, const struct sockaddr *, int)ÔÇÖ}
[build] 34 | ssize_t sendto (int, const void *, size_t __len, int __flags,
[build] | ^~~~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/setup-win32.h:46,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/curl_setup.h:247,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/altsvc.c:26:
[build] /usr/include/w32api/winsock2.h:1035:34: error: conflicting types for ÔÇÿsetsockoptÔÇÖ; have ÔÇÿint(SOCKET, int, int, const char *, int)ÔÇÖ {aka ÔÇÿint(long long unsigned int, int, int, const char *, int)ÔÇÖ}
[build] 1035 | WINSOCK_API_LINKAGE int WSAAPI setsockopt(SOCKET s,int level,int optname,const char *optval,int optlen);
[build] | ^~~~~~~~~~
[build] In file included from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/system.h:436,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/include/curl/curl.h:35,
[build] from C:/Users/mehdi/Desktop/test/build/_deps/curl-src/lib/cu
OK, this looks broken. Probably a problem in combination with mingw. I'm looking into it and created a new issue for it #860 .
Hello i'm fairy new to C++ i've been trying to use cpr , i've installed it with vcpkg
here is my cmakelists.txt
and here is my main.cpp
OS : windows 8 64x compiler : mingw IDE : vscodium