libcpr / cpr

C++ Requests: Curl for People, a spiritual port of Python Requests.
https://docs.libcpr.org/
Other
6.59k stars 937 forks source link

Cannot get cpr to work from vcpkg #859

Closed Chota22 closed 1 year ago

Chota22 commented 1 year ago

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

cmake_minimum_required(VERSION 3.0.0)
project(Scrapy VERSION 0.1.0)
set (CMAKE_CXX_STANDARD 11)
set(VCPKG_TARGET_TRIPLET x64-mingw-dynamic)
include(path/vcpkg/scripts/buildsystems/vcpkg.cmake)

include(CTest)
enable_testing()
add_executable(Scrapy main.cpp)

find_package(cpr CONFIG REQUIRED)
target_link_libraries(${PROJECT_NAME} PRIVATE cpr::cpr )
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
include(CPack)`

and here is my main.cpp

#include <iostream>
#include <cpr/cpr.h>
int main(int, char**) {

    cpr::Response r = cpr::Get(cpr::Url{"https://docs.libcpr.org/"});
    r.status_code;                  
    r.header["content-type"];       
    r.text;
    printf("it works" );               
    return 0;
}
now when i try and lunch main.cpp
this what i get in the output 
[build] [ 50%] Building CXX object CMakeFiles/Scrapy.dir/main.cpp.obj
[build] [100%] Linking CXX executable Scrapy.exe
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: CMakeFiles/Scrapy.dir/objects.a(main.cpp.obj): in function `std::map<std::string, std::string, cpr::CaseInsensitiveCompare, std::allocator<std::pair<std::string const, std::string> > >::operator[](std::string&&)':
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/include/c++/bits/stl_map.h:519: undefined reference to `cpr::CaseInsensitiveCompare::operator()(std::string const&, std::string const&) const'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: CMakeFiles/Scrapy.dir/objects.a(main.cpp.obj): in function `std::_Rb_tree<std::string, std::pair<std::string const, std::string>, std::_Select1st<std::pair<std::string const, std::string> >, cpr::CaseInsensitiveCompare, std::allocator<std::pair<std::string const, std::string> > >::_M_get_insert_hint_unique_pos(std::_Rb_tree_const_iterator<std::pair<std::string const, std::string> >, std::string const&)':
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/include/c++/bits/stl_tree.h:2174: undefined reference to `cpr::CaseInsensitiveCompare::operator()(std::string const&, std::string const&) const'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: /usr/lib/gcc/x86_64-pc-msys/11.3.0/include/c++/bits/stl_tree.h:2179: undefined reference to `cpr::CaseInsensitiveCompare::operator()(std::string const&, std::string const&) const'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: /usr/lib/gcc/x86_64-pc-msys/11.3.0/include/c++/bits/stl_tree.h:2185: undefined reference to `cpr::CaseInsensitiveCompare::operator()(std::string const&, std::string const&) const'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: /usr/lib/gcc/x86_64-pc-msys/11.3.0/include/c++/bits/stl_tree.h:2195: undefined reference to `cpr::CaseInsensitiveCompare::operator()(std::string const&, std::string const&) const'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: CMakeFiles/Scrapy.dir/objects.a(main.cpp.obj):/usr/lib/gcc/x86_64-pc-msys/11.3.0/include/c++/bits/stl_tree.h:2201: more undefined references to `cpr::CaseInsensitiveCompare::operator()(std::string const&, std::string const&) const' follow
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:/msys64/vcpkg/installed/x64-mingw-dynamic/debug/lib/libcpr.a(proxyauth.cpp.obj): in function `std::__new_allocator<std::_Rb_tree_node<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, cpr::EncodedAuthentication> > >::allocate(unsigned long long, void const*)':
[build] C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/mingw64/include/c++/12.2.0/bits/new_allocator.h:137: undefined reference to `operator new(unsigned long long)'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:/msys64/vcpkg/installed/x64-mingw-dynamic/debug/lib/libcpr.a(session.cpp.obj): in function `cpr::Session::Session()':
[build] C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/vcpkg/buildtrees/cpr/src/0ce00c60cd-ac486fb55d.clean/cpr/session.cpp:71: undefined reference to `operator new(unsigned long long)'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:/msys64/vcpkg/installed/x64-mingw-dynamic/debug/lib/libcpr.a(session.cpp.obj): in function `cpr::Session::makeDownloadRequest()':
[build] C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/vcpkg/buildtrees/cpr/src/0ce00c60cd-ac486fb55d.clean/cpr/session.cpp:90: undefined reference to `__imp__assert'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/vcpkg/buildtrees/cpr/src/0ce00c60cd-ac486fb55d.clean/cpr/session.cpp:109: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::find(char, unsigned long long) const'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/vcpkg/buildtrees/cpr/src/0ce00c60cd-ac486fb55d.clean/cpr/session.cpp:109: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::substr(unsigned long long, unsigned long long) const'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:/msys64/vcpkg/installed/x64-mingw-dynamic/debug/lib/libcpr.a(session.cpp.obj): in function `cpr::Session::prepareCommon()':
[build] C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/vcpkg/buildtrees/cpr/src/0ce00c60cd-ac486fb55d.clean/cpr/session.cpp:146: undefined reference to `__imp__assert'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/vcpkg/buildtrees/cpr/src/0ce00c60cd-ac486fb55d.clean/cpr/session.cpp:160: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::find(char, unsigned long long) const'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/vcpkg/buildtrees/cpr/src/0ce00c60cd-ac486fb55d.clean/cpr/session.cpp:160: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::substr(unsigned long long, unsigned long long) const'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/vcpkg/buildtrees/cpr/src/0ce00c60cd-ac486fb55d.clean/cpr/session.cpp:191: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::reserve(unsigned long long)'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:/msys64/vcpkg/installed/x64-mingw-dynamic/debug/lib/libcpr.a(session.cpp.obj): in function `cpr::Session::SetSslOptions(cpr::SslOptions const&)':
[build] C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/vcpkg/buildtrees/cpr/src/0ce00c60cd-ac486fb55d.clean/cpr/session.cpp:488: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator[](unsigned long long)'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:/msys64/vcpkg/installed/x64-mingw-dynamic/debug/lib/libcpr.a(session.cpp.obj): in function `cpr::Session::GetDownloadFileLength()':
[build] C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/vcpkg/buildtrees/cpr/src/0ce00c60cd-ac486fb55d.clean/cpr/session.cpp:647: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::find(char, unsigned long long) const'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/vcpkg/buildtrees/cpr/src/0ce00c60cd-ac486fb55d.clean/cpr/session.cpp:647: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::substr(unsigned long long, unsigned long long) const'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:/msys64/vcpkg/installed/x64-mingw-dynamic/debug/lib/libcpr.a(session.cpp.obj): in function `_M_create<cpr::ThreadPool::Submit<cpr::Session::GetAsync()::<lambda()> >(cpr::Session::GetAsync()::<lambda()>&&)::<lambda()> >':
[build] C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/mingw64/include/c++/12.2.0/bits/std_function.h:161: undefined reference to `operator new(unsigned long long)'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:/msys64/vcpkg/installed/x64-mingw-dynamic/debug/lib/libcpr.a(session.cpp.obj): in function `_M_create<cpr::ThreadPool::Submit<cpr::Session::DeleteAsync()::<lambda()> >(cpr::Session::DeleteAsync()::<lambda()>&&)::<lambda()> >':
[build] C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/mingw64/include/c++/12.2.0/bits/std_function.h:161: undefined reference to `operator new(unsigned long long)'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:/msys64/vcpkg/installed/x64-mingw-dynamic/debug/lib/libcpr.a(session.cpp.obj): in function `_M_create<cpr::ThreadPool::Submit<cpr::Session::DownloadAsync(const cpr::WriteCallback&)::<lambda()> >(cpr::Session::DownloadAsync(const cpr::WriteCallback&)::<lambda()>&&)::<lambda()> >':
[build] C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/mingw64/include/c++/12.2.0/bits/std_function.h:161: undefined reference to `operator new(unsigned long long)'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:/msys64/vcpkg/installed/x64-mingw-dynamic/debug/lib/libcpr.a(session.cpp.obj): in function `_M_create<cpr::ThreadPool::Submit<cpr::Session::DownloadAsync(std::ofstream&)::<lambda()> >(cpr::Session::DownloadAsync(std::ofstream&)::<lambda()>&&)::<lambda()> >':
[build] C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/mingw64/include/c++/12.2.0/bits/std_function.h:161: undefined reference to `operator new(unsigned long long)'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:/msys64/vcpkg/installed/x64-mingw-dynamic/debug/lib/libcpr.a(session.cpp.obj): in function `_M_create<cpr::ThreadPool::Submit<cpr::Session::HeadAsync()::<lambda()> >(cpr::Session::HeadAsync()::<lambda()>&&)::<lambda()> >':
[build] C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/mingw64/include/c++/12.2.0/bits/std_function.h:161: undefined reference to `operator new(unsigned long long)'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:/msys64/vcpkg/installed/x64-mingw-dynamic/debug/lib/libcpr.a(session.cpp.obj):C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/mingw64/include/c++/12.2.0/bits/std_function.h:161: more undefined references to `operator new(unsigned long long)' follow
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:/msys64/vcpkg/installed/x64-mingw-dynamic/debug/lib/libcpr.a(session.cpp.obj): in function `std::__cxx11::to_string(long long)':
[build] C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/mingw64/include/c++/12.2.0/bits/basic_string.h:4068: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(unsigned long long, char, std::allocator<char> const&)'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/mingw64/include/c++/12.2.0/bits/basic_string.h:4069: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator[](unsigned long long)'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:/msys64/vcpkg/installed/x64-mingw-dynamic/debug/lib/libcpr.a(session.cpp.obj): in function `std::__future_base::_State_baseV2::_M_set_delayed_result(std::function<std::unique_ptr<std::__future_base::_Result_base, std::__future_base::_Result_base::_Deleter> ()>, std::weak_ptr<std::__future_base::_State_baseV2>)':
[build] C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/mingw64/include/c++/12.2.0/future:430: undefined reference to `operator new(unsigned long long)'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:/msys64/vcpkg/installed/x64-mingw-dynamic/debug/lib/libcpr.a(session.cpp.obj): in function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char, std::char_traits<char>, std::allocator<char> >(char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&)':
[build] C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/mingw64/include/c++/12.2.0/bits/basic_string.h:3541: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::insert(unsigned long long, char const*)'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:/msys64/vcpkg/installed/x64-mingw-dynamic/debug/lib/libcpr.a(session.cpp.obj): in function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char, std::char_traits<char>, std::allocator<char> >(char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
[build] C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/mingw64/include/c++/12.2.0/bits/basic_string.tcc:618: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::reserve(unsigned long long)'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/mingw64/include/c++/12.2.0/bits/basic_string.tcc:619: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(char const*, unsigned long long)'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:/msys64/vcpkg/installed/x64-mingw-dynamic/debug/lib/libcpr.a(session.cpp.obj): in function `std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<cpr::CurlHolder*>(cpr::CurlHolder*)':
[build] C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/mingw64/include/c++/12.2.0/bits/shared_ptr_base.h:917: undefined reference to `operator new(unsigned long long)'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:/msys64/vcpkg/installed/x64-mingw-dynamic/debug/lib/libcpr.a(session.cpp.obj): in function `std::__new_allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::allocate(unsigned long long, void const*)':
[build] C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/mingw64/include/c++/12.2.0/bits/new_allocator.h:137: undefined reference to `operator new(unsigned long long)'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:/msys64/vcpkg/installed/x64-mingw-dynamic/debug/lib/libcpr.a(session.cpp.obj): in function `std::__new_allocator<cpr::Parameter>::allocate(unsigned long long, void const*)':
[build] C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/mingw64/include/c++/12.2.0/bits/new_allocator.h:137: undefined reference to `operator new(unsigned long long)'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:/msys64/vcpkg/installed/x64-mingw-dynamic/debug/lib/libcpr.a(session.cpp.obj): in function `std::__new_allocator<std::shared_ptr<cpr::Interceptor>*>::allocate(unsigned long long, void const*)':
[build] C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/mingw64/include/c++/12.2.0/bits/new_allocator.h:137: undefined reference to `operator new(unsigned long long)'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:/msys64/vcpkg/installed/x64-mingw-dynamic/debug/lib/libcpr.a(session.cpp.obj): in function `std::__new_allocator<curl_forms>::allocate(unsigned long long, void const*)':
[build] C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/mingw64/include/c++/12.2.0/bits/new_allocator.h:137: undefined reference to `operator new(unsigned long long)'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:/msys64/vcpkg/installed/x64-mingw-dynamic/debug/lib/libcpr.a(session.cpp.obj):C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/mingw64/include/c++/12.2.0/bits/new_allocator.h:137: more undefined references to `operator new(unsigned long long)' follow
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:/msys64/vcpkg/installed/x64-mingw-dynamic/debug/lib/libcpr.a(threadpool.cpp.obj): in function `time':
[build] C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/mingw64/include/time.h:256: undefined reference to `__imp__time64'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:/msys64/vcpkg/installed/x64-mingw-dynamic/debug/lib/libcpr.a(threadpool.cpp.obj): in function `cpr::ThreadPool::CreateThread()':
[build] C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/vcpkg/buildtrees/cpr/src/0ce00c60cd-ac486fb55d.clean/cpr/threadpool.cpp:108: undefined reference to `operator new(unsigned long long)'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:/msys64/vcpkg/installed/x64-mingw-dynamic/debug/lib/libcpr.a(threadpool.cpp.obj): in function `thread<cpr::ThreadPool::CreateThread()::<lambda()> >':
[build] C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/mingw64/include/c++/12.2.0/bits/std_thread.h:142: undefined reference to `operator new(unsigned long long)'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:/msys64/vcpkg/installed/x64-mingw-dynamic/debug/lib/libcpr.a(threadpool.cpp.obj): in function `std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<std::thread*>(std::thread*)':
[build] C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/mingw64/include/c++/12.2.0/bits/shared_ptr_base.h:917: undefined reference to `operator new(unsigned long long)'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:/msys64/vcpkg/installed/x64-mingw-dynamic/debug/lib/libcpr.a(threadpool.cpp.obj): in function `std::__new_allocator<std::_List_node<cpr::ThreadPool::ThreadData> >::allocate(unsigned long long, void const*)':
[build] C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/mingw64/include/c++/12.2.0/bits/new_allocator.h:137: undefined reference to `operator new(unsigned long long)'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:/msys64/vcpkg/installed/x64-mingw-dynamic/debug/lib/libcpr.a(util.cpp.obj): in function `cpr::util::parseHeader(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)':
[build] C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/vcpkg/buildtrees/cpr/src/0ce00c60cd-ac486fb55d.clean/cpr/util.cpp:71: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::substr(unsigned long long, unsigned long long) const'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/vcpkg/buildtrees/cpr/src/0ce00c60cd-ac486fb55d.clean/cpr/util.cpp:74: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::find_last_not_of(char const*, unsigned long long) const'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/vcpkg/buildtrees/cpr/src/0ce00c60cd-ac486fb55d.clean/cpr/util.cpp:74: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::resize(unsigned long long)'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/vcpkg/buildtrees/cpr/src/0ce00c60cd-ac486fb55d.clean/cpr/util.cpp:81: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::find_first_of(char const*, unsigned long long) const'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/vcpkg/buildtrees/cpr/src/0ce00c60cd-ac486fb55d.clean/cpr/util.cpp:84: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::find_first_of(char const*, unsigned long long) const'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/vcpkg/buildtrees/cpr/src/0ce00c60cd-ac486fb55d.clean/cpr/util.cpp:87: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::erase(unsigned long long, unsigned long long)'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/vcpkg/buildtrees/cpr/src/0ce00c60cd-ac486fb55d.clean/cpr/util.cpp:96: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::find(char, unsigned long long) const'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/vcpkg/buildtrees/cpr/src/0ce00c60cd-ac486fb55d.clean/cpr/util.cpp:98: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::substr(unsigned long long, unsigned long long) const'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/vcpkg/buildtrees/cpr/src/0ce00c60cd-ac486fb55d.clean/cpr/util.cpp:99: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::find_first_not_of(char const*, unsigned long long) const'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/vcpkg/buildtrees/cpr/src/0ce00c60cd-ac486fb55d.clean/cpr/util.cpp:99: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::erase(unsigned long long, unsigned long long)'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/vcpkg/buildtrees/cpr/src/0ce00c60cd-ac486fb55d.clean/cpr/util.cpp:100: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::find_last_not_of(char const*, unsigned long long) const'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/vcpkg/buildtrees/cpr/src/0ce00c60cd-ac486fb55d.clean/cpr/util.cpp:100: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::resize(unsigned long long)'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/vcpkg/buildtrees/cpr/src/0ce00c60cd-ac486fb55d.clean/cpr/util.cpp:101: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::substr(unsigned long long, unsigned long long) const'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:/msys64/vcpkg/installed/x64-mingw-dynamic/debug/lib/libcpr.a(util.cpp.obj): in function `cpr::util::headerUserFunction(char*, unsigned long long, unsigned long long, cpr::HeaderCallback const*)':
[build] C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/vcpkg/buildtrees/cpr/src/0ce00c60cd-ac486fb55d.clean/cpr/util.cpp:128: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, unsigned long long, std::allocator<char> const&)'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:/msys64/vcpkg/installed/x64-mingw-dynamic/debug/lib/libcpr.a(util.cpp.obj): in function `cpr::util::writeFunction(char*, unsigned long long, unsigned long long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)':
[build] C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/vcpkg/buildtrees/cpr/src/0ce00c60cd-ac486fb55d.clean/cpr/util.cpp:133: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(char const*, unsigned long long)'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:/msys64/vcpkg/installed/x64-mingw-dynamic/debug/lib/libcpr.a(util.cpp.obj): in function `cpr::util::writeFileFunction(char*, unsigned long long, unsigned long long, std::basic_ofstream<char, std::char_traits<char> >*)':
[build] C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/vcpkg/buildtrees/cpr/src/0ce00c60cd-ac486fb55d.clean/cpr/util.cpp:139: undefined reference to `std::ostream::write(char const*, long long)'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:/msys64/vcpkg/installed/x64-mingw-dynamic/debug/lib/libcpr.a(util.cpp.obj): in function `cpr::util::writeUserFunction(char*, unsigned long long, unsigned long long, cpr::WriteCallback const*)':
[build] C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/vcpkg/buildtrees/cpr/src/0ce00c60cd-ac486fb55d.clean/cpr/util.cpp:145: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, unsigned long long, std::allocator<char> const&)'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:/msys64/vcpkg/installed/x64-mingw-dynamic/debug/lib/libcpr.a(util.cpp.obj): in function `cpr::util::debugUserFunction(void*, curl_infotype, char*, unsigned long long, cpr::DebugCallback const*)':
[build] C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/vcpkg/buildtrees/cpr/src/0ce00c60cd-ac486fb55d.clean/cpr/util.cpp:157: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, unsigned long long, std::allocator<char> const&)'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:/msys64/vcpkg/installed/x64-mingw-dynamic/debug/lib/libcpr.a(util.cpp.obj): in function `__gnu_cxx::__stoa<unsigned long, unsigned long, char, int>(unsigned long (*)(char const*, char**, int), char const*, char const*, unsigned long long*, int)::_Save_errno::_Save_errno()':
[build] C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/mingw64/include/c++/12.2.0/ext/string_conversions.h:63: undefined reference to `__imp__errno'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/mingw64/include/c++/12.2.0/ext/string_conversions.h:63: undefined reference to `__imp__errno'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:/msys64/vcpkg/installed/x64-mingw-dynamic/debug/lib/libcpr.a(util.cpp.obj): in function `__gnu_cxx::__stoa<unsigned long, unsigned long, char, int>(unsigned long (*)(char const*, char**, int), char const*, char const*, unsigned long long*, int)::_Save_errno::~_Save_errno()':
[build] C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/mingw64/include/c++/12.2.0/ext/string_conversions.h:64: undefined reference to `__imp__errno'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/mingw64/include/c++/12.2.0/ext/string_conversions.h:64: undefined reference to `__imp__errno'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:/msys64/vcpkg/installed/x64-mingw-dynamic/debug/lib/libcpr.a(util.cpp.obj): in function `unsigned long __gnu_cxx::__stoa<unsigned long, unsigned long, char, int>(unsigned long (*)(char const*, char**, int), char const*, char const*, unsigned long long*, int)':
[build] C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/mingw64/include/c++/12.2.0/ext/string_conversions.h:84: undefined reference to `__imp__errno'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:/msys64/vcpkg/installed/x64-mingw-dynamic/debug/lib/libcpr.a(response.cpp.obj): in function `cpr::Response::Response(std::shared_ptr<cpr::CurlHolder>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&, cpr::Cookies&&, cpr::Error&&)':
[build] C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/vcpkg/buildtrees/cpr/src/0ce00c60cd-ac486fb55d.clean/cpr/response.cpp:7: undefined reference to `__imp__assert'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/vcpkg/buildtrees/cpr/src/0ce00c60cd-ac486fb55d.clean/cpr/response.cpp:8: undefined reference to `__imp__assert'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:/msys64/vcpkg/installed/x64-mingw-dynamic/debug/lib/libcpr.a(response.cpp.obj): in function `cpr::Response::GetCertInfos()':
[build] C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/vcpkg/buildtrees/cpr/src/0ce00c60cd-ac486fb55d.clean/cpr/response.cpp:28: undefined reference to `__imp__assert'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/vcpkg/buildtrees/cpr/src/0ce00c60cd-ac486fb55d.clean/cpr/response.cpp:29: undefined reference to `__imp__assert'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:/msys64/vcpkg/installed/x64-mingw-dynamic/debug/lib/libcpr.a(response.cpp.obj): in function `std::__new_allocator<cpr::CertInfo>::allocate(unsigned long long, void const*)':
[build] C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/mingw64/include/c++/12.2.0/bits/new_allocator.h:137: undefined reference to `operator new(unsigned long long)'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:/msys64/vcpkg/installed/x64-mingw-dynamic/debug/lib/libcpr.a(accept_encoding.cpp.obj): in function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char, std::char_traits<char>, std::allocator<char> >(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&)':
[build] C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/mingw64/include/c++/12.2.0/bits/basic_string.h:3531: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::insert(unsigned long long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:/msys64/vcpkg/installed/x64-mingw-dynamic/debug/lib/libcpr.a(async.cpp.obj): in function `cpr::GlobalThreadPool::GetInstance()':
[build] C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/vcpkg/buildtrees/cpr/src/0ce00c60cd-ac486fb55d.clean/cpr/async.cpp:6: undefined reference to `operator new(unsigned long long)'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:/msys64/vcpkg/installed/x64-mingw-dynamic/debug/lib/libcpr.a(cookies.cpp.obj): in function `gmtime_s':
[build] C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/mingw64/include/time.h:264: undefined reference to `__imp__gmtime64_s'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:/msys64/vcpkg/installed/x64-mingw-dynamic/debug/lib/libcpr.a(cookies.cpp.obj): in function `std::__new_allocator<cpr::Cookie>::allocate(unsigned long long, void const*)':
[build] C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/mingw64/include/c++/12.2.0/bits/new_allocator.h:137: undefined reference to `operator new(unsigned long long)'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:/msys64/vcpkg/installed/x64-mingw-dynamic/debug/lib/libcpr.a(curl_container.cpp.obj): in function `std::__new_allocator<cpr::Pair>::allocate(unsigned long long, void const*)':
[build] C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/mingw64/include/c++/12.2.0/bits/new_allocator.h:137: undefined reference to `operator new(unsigned long long)'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:/msys64/vcpkg/installed/x64-mingw-dynamic/debug/lib/libcpr.a(curlholder.cpp.obj): in function `cpr::CurlHolder::CurlHolder()':
[build] C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/vcpkg/buildtrees/cpr/src/0ce00c60cd-ac486fb55d.clean/cpr/curlholder.cpp:18: undefined reference to `__imp__assert'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:/msys64/vcpkg/installed/x64-mingw-dynamic/debug/lib/libcpr.a(curlholder.cpp.obj): in function `cpr::CurlHolder::urlEncode(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const':
[build] C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/vcpkg/buildtrees/cpr/src/0ce00c60cd-ac486fb55d.clean/cpr/curlholder.cpp:28: undefined reference to `__imp__assert'
[build] /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: C:/msys64/vcpkg/installed/x64-mingw-dynamic/debug/lib/libcpr.a(curlholder.cpp.obj): in function `cpr::CurlHolder::urlDecode(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const':
[build] C:\msys64\vcpkg\buildtrees\cpr\x64-mingw-dynamic-dbg/C:/msys64/vcpkg/buildtrees/cpr/src/0ce00c60cd-ac486fb55d.clean/cpr/curlholder.cpp:39: undefined reference to `__imp__assert'
[build] collect2: error: ld returned 1 exit status
[build] make[3]: *** [CMakeFiles/Scrapy.dir/build.make:103: Scrapy.exe] Error 1
[build] make[2]: *** [CMakeFiles/Makefile2:83: CMakeFiles/Scrapy.dir/all] Error 2
[build] make[1]: *** [CMakeFiles/Makefile2:90: CMakeFiles/Scrapy.dir/rule] Error 2
[build] make: *** [Makefile:154: Scrapy] Error 2
[proc] The command: "C:\Program Files\CMake\bin\cmake.EXE" --build c:/Users/mehdi/OneDrive/Documents/1.0/C++/Scrap/build --config Debug --target Scrapy -j 10 -- exited with code: 2 and signal: null
[build] Build finished with exit code 2

OS : windows 8 64x compiler : mingw IDE : vscodium

COM8 commented 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

Chota22 commented 1 year ago

@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

COM8 commented 1 year ago

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

Chota22 commented 1 year ago

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%] Building C object _deps/curl-build/lib/CMakeFiles/libcurl.dir/altsvc.c.obj
[build] [  1%] Building C object _deps/curl-build/lib/CMakeFiles/libcurl.dir/amigaos.c.obj
[build] [  1%] Building C object _deps/curl-build/lib/CMakeFiles/libcurl.dir/asyn-ares.c.obj
[build] [  2%] Building C object _deps/curl-build/lib/CMakeFiles/libcurl.dir/asyn-thread.c.obj
[build] [  2%] Building C object _deps/curl-build/lib/CMakeFiles/libcurl.dir/base64.c.obj
[build] [  3%] Building C object _deps/curl-build/lib/CMakeFiles/libcurl.dir/bufref.c.obj
[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%] Building C object _deps/curl-build/lib/CMakeFiles/libcurl.dir/c-hyper.c.obj
[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%] Building C object _deps/curl-build/lib/CMakeFiles/libcurl.dir/conncache.c.obj
[build] [  4%] Building C object _deps/curl-build/lib/CMakeFiles/libcurl.dir/connect.c.obj
[build] [  4%] Building C object _deps/curl-build/lib/CMakeFiles/libcurl.dir/content_encoding.c.obj
[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
COM8 commented 1 year ago

OK, this looks broken. Probably a problem in combination with mingw. I'm looking into it and created a new issue for it #860 .