-
Notifications
You must be signed in to change notification settings - Fork 416
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
Linker error in VS 2013 #99
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I'm having problems linking the static lib in a project.
I've added the glsl_optimizer_lib project as a reference, and the library builds fine. But then when I use
glslopt_ctx* ctx = glslopt_initialize(kGlslTargetOpenGLES20);
I get:
1>MainComponent.obj : error LNK2019: unresolved external symbol "class glslopt_ctx * __cdecl glslopt_initialize(enum glslopt_target)" (?glslopt_initialize@@YAPAVglslopt_ctx@@W4glslopt_target@@@z) referenced in function "public: __thiscall MainContentComponent::MainContentComponent(void)" (??0MainContentComponent@@QAE@XZ)
I've tried every possible way of adding the library: project reference, additional dependencies, etc.
I'm fairly sure that the compiler is finding the lib, but still. Is there something I'm missing? An extra dependency?
I've tried including the source directly but it won't build due to typedef clashes (my project also uses OpenGL) and before digging into that I thought I'd ask here.
Any help at all would be most appreciated.
Rob
The text was updated successfully, but these errors were encountered: