You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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: