yourWaifu / sleepy-discord

C++ library for the Discord chat client. Please use Rust for new bots
https://yourWaifu.github.io/sleepy-discord/
MIT License
708 stars 93 forks source link

Cannot build self app with lib #242

Open d4rkd3n1337 opened 2 years ago

d4rkd3n1337 commented 2 years ago

Hi, i am new to CMake, but I can compiled that.

I create self app, and include "C:\path_to_sleepy_discord\include" and "C:\path_to_sleepy_discord\include\IncludeNonexistent". Also linking a static lib - "C:\path_to_sleepy_discord\Release" - sleepy-discord.lib

But if I am trying to compile, I have next error: unresolvered external symbol "public: static class SleepyDiscord::GenericSession (__cdecl SleepyDiscord::CustomSession::init)(void)" (?init@CustomSession@SleepyDiscord@@2Q6APEAVGenericSession@2@XZEA).

How I can solve it?

yourWaifu commented 2 years ago

What does your CMakeLists.txt file look like

d4rkd3n1337 commented 2 years ago

I am use a default CMakeLists CMakeLists.txt

yourWaifu commented 2 years ago

I'm asking for the one you wrote not the library's

d4rkd3n1337 commented 2 years ago

Hello :3, I am use a MSVS, dont use a cmake

yourWaifu commented 2 years ago

https://docs.microsoft.com/en-us/cpp/build/cmake-projects-in-visual-studio?view=msvc-160