#include <GL/glfw.h>
using namespace std;
int main()
{
int running = GL_TRUE;
if ( !glfwInit() )
{
exit(EXIT_FAILURE);
}
if (!glfwOpenWindow(900, 750, 0, 0, 0, 0, 0, 0, GLFW_WINDOW))
{
glfwTerminate();
exit(EXIT_FAILURE);
}
while (running)
{
// Game code
}
return 0;
}
After some digging, I was able to install the xorg devel package that set up glu.h. However, now I get glfw errors like 'undefined reference to glfwInit' and also for glfwOpenWindow and glfwTerminate.
The odd thing is that those methods are available in code completion lists for both the #include and the method calls. I've tried reinstalling the glfw and glfw-devel packages to no avail.
Any ideas?