Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QUESTION]error build x64-windows with vcpkg #622

Open
iWuYng opened this issue Feb 20, 2025 · 0 comments
Open

[QUESTION]error build x64-windows with vcpkg #622

iWuYng opened this issue Feb 20, 2025 · 0 comments

Comments

@iWuYng
Copy link

iWuYng commented Feb 20, 2025

I'm trying to install the redis++ with
vcpkg install redis-plus-plus:x64-windows-static

A part of C:\vcpkg\buildtrees\redis-plus-plus\install-x64-windows-static-dbg-out.log shows:
[12/19] "E:\Mincrosoft Visual Studio 2015\VC\bin\amd64\cl.exe" /TP -DNOMINMAX -IC:\vcpkg\buildtrees\redis-plus-plus\src\1.3.13-be21cc0cfe.clean\src -IC:\vcpkg\buildtrees\redis-plus-plus\src\1.3.13-be21cc0cfe.clean\src\sw\redis++\no_tls -IC:\vcpkg\buildtrees\redis-plus-plus\src\1.3.13-be21cc0cfe.clean\src\sw\redis++\cxx11 -IC:\vcpkg\buildtrees\redis-plus-plus\x64-windows-static-dbg\src -IC:\vcpkg\installed\x64-windows-static\include /nologo /DWIN32 /D_WINDOWS /utf-8 /GR /EHsc /MP /std:c++11 /MTd /Z7 /Ob0 /Od /RTC1 /showIncludes /FoCMakeFiles\redis++_static.dir\src\sw\redis++\sentinel.cpp.obj /FdCMakeFiles\redis++_static.dir\redis++_static.pdb /FS -c C:\vcpkg\buildtrees\redis-plus-plus\src\1.3.13-be21cc0cfe.clean\src\sw\redis++\sentinel.cpp
FAILED: CMakeFiles/redis++_static.dir/src/sw/redis++/sentinel.cpp.obj
"E:\Mincrosoft Visual Studio 2015\VC\bin\amd64\cl.exe" /TP -DNOMINMAX -IC:\vcpkg\buildtrees\redis-plus-plus\src\1.3.13-be21cc0cfe.clean\src -IC:\vcpkg\buildtrees\redis-plus-plus\src\1.3.13-be21cc0cfe.clean\src\sw\redis++\no_tls -IC:\vcpkg\buildtrees\redis-plus-plus\src\1.3.13-be21cc0cfe.clean\src\sw\redis++\cxx11 -IC:\vcpkg\buildtrees\redis-plus-plus\x64-windows-static-dbg\src -IC:\vcpkg\installed\x64-windows-static\include /nologo /DWIN32 /D_WINDOWS /utf-8 /GR /EHsc /MP /std:c++11 /MTd /Z7 /Ob0 /Od /RTC1 /showIncludes /FoCMakeFiles\redis++_static.dir\src\sw\redis++\sentinel.cpp.obj /FdCMakeFiles\redis++_static.dir\redis++_static.pdb /FS -c C:\vcpkg\buildtrees\redis-plus-plus\src\1.3.13-be21cc0cfe.clean\src\sw\redis++\sentinel.cpp
cl : Command line warning D9002 : ignoring unknown option '/utf-8'
cl : Command line warning D9002 : ignoring unknown option '/std:c++11'
C:\vcpkg\buildtrees\redis-plus-plus\src\1.3.13-be21cc0cfe.clean\src\sw/redis++/reply.h(74): error C2665: 'sw::redis::reply::parse': none of the 5 overloads could convert all the argument types
C:\vcpkg\buildtrees\redis-plus-plus\src\1.3.13-be21cc0cfe.clean\src\sw/redis++/reply.h(88): note: could be 'bool sw::redis::reply::parse(sw::redis::reply::ParseTag,redisReply &)'
C:\vcpkg\buildtrees\redis-plus-plus\src\1.3.13-be21cc0cfe.clean\src\sw/redis++/reply.h(86): note: or 'double sw::redis::reply::parse(sw::redis::reply::ParseTag,redisReply &)'
C:\vcpkg\buildtrees\redis-plus-plus\src\1.3.13-be21cc0cfe.clean\src\sw/redis++/reply.h(84): note: or '__int64 sw::redis::reply::parse(sw::redis::reply::ParseTag<__int64>,redisReply &)'
C:\vcpkg\buildtrees\redis-plus-plus\src\1.3.13-be21cc0cfe.clean\src\sw/redis++/reply.h(82): note: or 'std::string sw::redis::reply::parse(sw::redis::reply::ParseTagstd::string,redisReply &)'
C:\vcpkg\buildtrees\redis-plus-plus\src\1.3.13-be21cc0cfe.clean\src\sw/redis++/reply.h(80): note: or 'void sw::redis::reply::parse(sw::redis::reply::ParseTag,redisReply &)'
C:\vcpkg\buildtrees\redis-plus-plus\src\1.3.13-be21cc0cfe.clean\src\sw/redis++/reply.h(74): note: while trying to match the argument list '(sw::redis::reply::ParseTag, redisReply)'
with
[
T=std::vector<SlaveInfo,std::allocator>
]
C:\vcpkg\buildtrees\redis-plus-plus\src\1.3.13-be21cc0cfe.clean\src\sw\redis++\sentinel.cpp(300): note: see reference to function template instantiation 'T sw::redis::reply::parse<std::vector<SlaveInfo,std::allocator<_Ty>>>(redisReply &)' being compiled
with
[
T=std::vector<SlaveInfo,std::allocator>,
_Ty=SlaveInfo
]

And the other logs are all about:
cl : Command line warning D9002 : ignoring unknown option '/utf-8'
cl : Command line warning D9002 : ignoring unknown option '/std:c++11'

I'm using MSVC 2015 due to some personal reasons. would this old version compiler be a serious problem?

Environment:

  • OS: Windows
  • Compiler: MSVC 2015
  • hiredis:x64-windows-static@1.2.0 was correctly installed.
  • redis-plus-plus:x64-windows-static@1.3.13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant