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

Cannot build self app with lib #242

Open
d4rkd3n1337 opened this issue Aug 30, 2021 · 5 comments
Open

Cannot build self app with lib #242

d4rkd3n1337 opened this issue Aug 30, 2021 · 5 comments

Comments

@d4rkd3n1337
Copy link

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
Copy link
Owner

What does your CMakeLists.txt file look like

@d4rkd3n1337
Copy link
Author

I am use a default CMakeLists
CMakeLists.txt

@yourWaifu
Copy link
Owner

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

@d4rkd3n1337
Copy link
Author

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

@yourWaifu
Copy link
Owner

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

2 participants