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

error LNK2019: unresolved external symbol __imp_glewInit when I link to the static lib? #88

Closed
wguo68 opened this issue May 31, 2016 · 1 comment

Comments

@wguo68
Copy link

wguo68 commented May 31, 2016

I build the static glew library glew32sd.lib using vc12. When I want to link to glew in my project, there are errors:
1>main.obj : error LNK2019: unresolved external symbol __imp_glGetString referenced in function "void __cdecl setup_openGL(void)" (?setup_openGL@@yaxxz)
1>main.obj : error LNK2019: unresolved external symbol __imp_glewInit referenced in function "void __cdecl setup_openGL(void)" (?setup_openGL@@yaxxz)
1>main.obj : error LNK2001: unresolved external symbol __imp___GLEW_VERSION_3_2
1>main.obj : error LNK2001: unresolved external symbol __imp_glewExperimental

I have set the correct path for glew. What's the problem?

@nigels-com
Copy link
Owner

Try defining GLEW_STATIC

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