Hello. I started a new ogl project with Codeblocks, but this time its complaining about undefined reference to two GLFW functions: “windowResize” and “handleKeypress”
I declared both functions at the beginning of my source file. Also included the header for GLFW. Here is the code
#include "glew.h" #include "glfw.h" #include "gl.h" using namespace std; void GLFWCALL windowResize (int, int); void GLFWCALL handleKeypress (int, int);
In my project build options (I am using codeblocks) in the linker settings, I included absolute path to the glfw.so library with
As far as I can note, these are the same things I did in my previous OGL code, that compiles just fine.
Yet, this time it keep complained with
-------------- Build: Release in test-ogl --------------- Linking console executable: bin/Release/test-ogl obj/Release/ogl-test.o: In function `main': ogl-test.cpp:(.text+0xe2d): undefined reference to `windowResize(int, int)' ogl-test.cpp:(.text+0xe37): undefined reference to `handleKeypress(int, int)' collect2: ld returned 1 exit status Process terminated with status 1 (0 minutes, 0 seconds) 2 errors, 0 warnings
Any ideas ?