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

LNK2001 errors that i can't get rid of #1098

Open
theartemmaps1 opened this issue Jan 22, 2025 · 1 comment
Open

LNK2001 errors that i can't get rid of #1098

theartemmaps1 opened this issue Jan 22, 2025 · 1 comment

Comments

@theartemmaps1
Copy link

Hello, i'm trying to connect OpenAL soft to my project, and i keep getting LNK2001 errors, despite having the .lib LINKED to my project! And yeah, i have the AL_LIBTYPE_STATIC define, same error, but with different export function name. (without, _imp, with _ (just underscore)

Image

I don't get it, what could be wrong?

@kcat
Copy link
Owner

kcat commented Jan 22, 2025

Are you sure you're linking the static library? AL_LIBTYPE_STATIC doesn't make it static link, it should only be defined if you're linking to the static library. If you link to the dynamic import .lib it won't find the functions in the DLL that way.

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