I'm trying to run a simple OpenGL application. I'm using CodeBlocks with MinGW64, freeglut, and GLEW. The tutorial I am trying to run is found here: https://github.com/opengl-tutorials/ogl/tree/master/tutorial02_red_triangle
I included the line #define GLEW_STATIC
at the top of my program, which fixed a couple bugs. I (believe) I have included all the necessary libraries, yet my program doesn't compile.
-------------- Build: Debug in example1 (compiler: GNU GCC Compiler)---------------
g++64.exe -LC:\MinGW64\lib -o bin\Debug\example1.exe obj\Debug\main.o -m64 -lglew32 -lmingw32 -lSDL2main -lSDL2 -lglfw3 -lglew32s -lfreeglut -lopengl32 -lglu32 -lwinmm -lgdi32 C:\MinGW64\lib\glew32.lib C:\MinGW64\lib\glew32s.lib C:\MinGW64\lib\libglfw3.a
obj\Debug\main.o: In function `main':
C:/CS528/example1/main.cpp:64: undefined reference to `LoadShaders(char const*, char const*)'
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (0 minute(s), 0 second(s))
2 error(s), 0 warning(s) (0 minute(s), 0 second(s))
I am actually pretty desperate and have been trying to get this work for the past 20 hours. All help is appreciated.