yourWaifu / sleepy-discord

C++ library for the Discord chat client. Please use Rust for new bots

Home Page:https://yourWaifu.github.io/sleepy-discord/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LNK1181 cannot open input file 'cpr.lib'

therealnv6 opened this issue · comments

commented

CMakeLists.txt

cmake_minimum_required (VERSION 3.13)

project (sleepy-horse)
add_executable(sleepy-horse sleepy-horse.cpp)	

# libraries
find_package(sleepy-discord CONFIG REQUIRED)
target_link_libraries(sleepy-horse sleepy-discord)

Full Error

Severity	Code	Description	Project	File	Line	Suppression State
Error	LNK1104	cannot open file 'cpr.lib'	C:\Users\Patrick\source\repos\sleepy-horse\out\build\x64-debug\sleepy-horse	C:\Users\Patrick\source\repos\sleepy-horse\out\build\x64-debug\LINK	1	

Platform

  • Visual Studio + CMake and vcpkg

Not entirely sure if there is any important information I'm leaving out, this is my first time using CMake.

Any help would be appreciated, thanks in advance.

Can you give me the version you installed? the version number from vcpkg

commented

Can you give me the version you installed? the version number from vcpkg

image
this I presume?

oh, yes this an issue I'm aware and I have a fix, I forgot to update it on VCPKG. yourWaifu/vcpkg@80b81d1

commented

oh, yes this an issue I'm aware and I have a fix, I forgot to update it on VCPKG. yourWaifu/vcpkg@80b81d1

after manually applying this patch and updating the package, still seem to be getting the same issue but with LNK1104.

Severity	Code	Description	Project	File	Line	Suppression State
Error	LNK1104	cannot open file 'cpr.lib'	C:\Users\Patrick\source\repos\sleepy-horse\out\build\x64-debug\sleepy-horse	C:\Users\Patrick\source\repos\sleepy-horse\out\build\x64-debug\LINK	1	

you need to uninstall, reinstall, then try reconfiguring

commented

big thanks, that indeed worked.