glsl-optimizer icon indicating copy to clipboard operation
glsl-optimizer copied to clipboard

Linker error in VS 2013

Open robclouth opened this issue 9 years ago • 0 comments

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

robclouth avatar May 10 '15 09:05 robclouth