/tmp/ccCWB3eN.o: In function `main':
tutorial02.cpp:(.text+0x149): undefined reference to `LoadShaders(char const*, char const*)'
collect2: error: ld returned 1 exit status
willie@Toede:~/Downloads/OpenGL-tutorial_v0014_21/tutorial02_red_triangle$
The only line of code that uses the LoadShaders function is this one at line 57
1 2
// Create and compile our GLSL program from the shaders
GLuint programID = LoadShaders( "SimpleVertexShader.vertexshader", "SimpleFragmentShader.fragmentshader" );
The tutorial2.cpp is downloaded right from the opengltutorial.org. So one wouldn't think that the function was called wrong or the code has a typo somewhere.
I think it has something to do with the "SimpleVertexShader.vertexshader",
"SimpleFragmentShader.fragmentshader" files. Are they supposed to be called out in a header to be called out in line 57 or maybe I am just missing a linker?