Home > GLSL, Opengl > OpenGl Shader Programming: Getting Started

OpenGl Shader Programming: Getting Started

Download “The OpenGL Extension Wrangler Library” and put the files as described there.

Run glewinfo.exe to see if your graphics card supports the Opengl GLSL Shader library.

Try some code, I downloaded the program given my TA.

But there was error coming as

main.obj : error LNK2001: unresolved external symbol __imp____glewGetInfoLogARB
main.obj : error LNK2001: unresolved external symbol __imp____glewGetObjectParameterivARB
main.obj : error LNK2019: unresolved external symbol __imp__glewInit referenced in function “bool __cdecl init(void)” (?init@@YA_NXZ)
main.obj : error LNK2001: unresolved external symbol __imp____glewUniform1i
main.obj : error LNK2001: unresolved external symbol __imp____glewUniform4f
main.obj : error LNK2001: unresolved external symbol __imp____glewGetUniformLocation
main.obj : error LNK2001: unresolved external symbol __imp____glewUseProgram
main.obj : error LNK2001: unresolved external symbol __imp____glewLinkProgram
main.obj : error LNK2001: unresolved external symbol __imp____glewAttachShader
main.obj : error LNK2001: unresolved external symbol __imp____glewCreateProgram
main.obj : error LNK2001: unresolved external symbol __imp____glewCompileShader
main.obj : error LNK2001: unresolved external symbol __imp____glewShaderSource
main.obj : error LNK2001: unresolved external symbol __imp____glewCreateShader
Debug/test2.exe : fatal error LNK1120: 13 unresolved externals

To resolve this error I searched on the internet and found this

http://www.gamedev.net/community/forums/topic.asp?topic_id=472791

“Expand Configuration Properties>Linker>Input
add glew32.lib (for example) to the Additional Dependencies box.” by Matthughes

Advertisements
Categories: GLSL, Opengl Tags: , ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: