thks
In my project I must include a source file named shader.cpp/shader.hpp
I added :
#include <shader.hpp>
when I compile, the file is found but an error is raised :
||=== Build: Debug in tuto5 (compiler: GNU GCC Compiler) ===|
C:\msys64\mingw64\bin\..\lib\gcc\x86_64-w64-mingw32\9.2.0\..\..\..\..\x86_64-w64-mingw32\bin\ld.exe: obj\Debug\tutorial05_textured_cube\tutorial05.o||in function `main':|
C:\Users\.......\Desktop\ogl-master\tutorial05_textured_cube\tutorial05.cpp|67|undefined reference to `LoadShaders(char const*, char const*)'|
||error: ld returned 1 exit status|
||=== Build failed: 2 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|
the call to the function LoadShaders is correct in my main as it is :
GLuint programID = LoadShaders( "TransformVertexShader.vertexshader", "TextureFragmentShader.fragmentshader" );
I just need to add the file shader.cpp to my project in the managment window and it compiles correctly.
Can you explain me what was going on please ?