I'm doing GLEW and the referencing is troublesome (as for many). However, it doesn't makes sense to me why it isn't working since the required linking steps have been followed.
What annoys me the most is that I thought I "understood" the logic with linking.
"To use the GLEW library you must first include the header files by giving the compiler a search directory /Project/include for example. But if the function prototypes in the header want to use the functions in its whole you must link the library to your project so it can find the C files (since its glew)."
Now, judge by the images and my description where it fails.
https://i.stack.imgur.com/wo1fl.jpg
As you can see in the linked images. I have to what needs to be done. And it still displays the error.
Build log:
mingw32-g++.exe -Ldependecies\lib -LC:\Programming\BennyOGL\dependecies\lib -o bin\Debug\BennyOGL.exe obj\Debug\display.o obj\Debug\main.o -lmingw32 -lSDL2main -lSDL2 -lglew32s -lmingw32 -lSDL2main -lSDL2 -lglew32
obj\Debug\display.o: In function ZN7displayC2EiiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE':
C:/Programming/BennyOGL/display.cpp:18: undefined reference to
_imp__glewInit@0'
collect2.exe: error: ld returned 1 exit status