Like the title says, I'm getting multiple build errors using C::B, all are saying undefined reference to '*'
. I'm trying to build a program using OpenGL, GLFW, and GLEW. The top three things that it cant find every time are _imp__CreateDCW@16
, _imp__GetDeviceCaps@8
, _imp__DeleteDC@4
. When looking on the internet, I saw that all of those methods were in the gdi32
library, which I made sure to add to the linker. The error appears to be happening as soon as I try to use methods from GLFW3. I've tried using different builds of GLFW using MinGW, which is what I'm using with Code::Blocks, but I cannot get the error to go away.
I am developing on Windows 8.1, using Code::Blocks 13.12.
Here is a list of everything I am linking and in the same order:
- gdi32
- kernel32
- user32
- opengl32
- glu32
- glfw3
Code::Blocks is turning out to be a bit of a hassle, but I really want to start to get used to it. Thanks to anyone who can help.