When I try to compile a program using OpenGL on MacOSX I get the error message 'ld: library not found for -lopengl32' and 'clang: error: linker command failed with exit code 1 (use -v to see invocation)', which I'm guessing is caused by the library not being found. The code works on Windows, but not on Mac. I'm using CodeBlocks 13.12.
I have tried to install OpenGL using the commands
brew install glfw3
and
brew install glew
but I still get the same error.
I have tried this on a Windows system and there it works out of the box.
What do I need to do to install the missing library?