Hey guys,
I have been working with GLFW and GLEW in Visual Studio, no problem. Now I downloaded codeblocks, and would like to port my code over to code blocks before it gets so big I won't feel like doing it.
I tested the basic OpenGL demo (triangle) which runs without any issues. But when I create an empty project myself, add GLEWand GLFWto it, and compile it, it gives me a bunch of unresolved externals, such as:
'undefined reference to _imp__glewInit@0'
C:\Dev Tools\Middleware\GLFW\lib\Debug\glfw3.lib(glfw.dir\Debug\window.obj)
.text$mn+0xc7)||undefined reference to `_RTC_CheckEsp'|
I'm using the exact same header files & lib files I used in Visual Studio, where they worked. All I did there, was include the headers, and the libs in the project, add GLEW_STATIC and that's it...
So anyway, under linker, I have added the lib files, under compiler i have added the include files. In fact, I know codeblocks finds them, if it didn't it'd say something like "can't find glew32s.lib" or whatever. I also declared GLEW static...
I'm using the built in GNU GCC compiler. GCC, G++ v5.2.0
Win 7
Please help guys, what am I missing? I've just started with code blocks, but it can't be that hard if there's an OpenGL project already coming with codeblocks.
I have tried setting up a GLFW project too, but it keeps saying that the header file is not found, since it's looking for glfw.h instead of glfw3.h...
Thank you ever so much in advance