Do you mean that you are getting the following error message:
"Failed to open window"?
In that case, it means your code is compiling just fine, but you are probably sending some wrong parameters to GLFW somewhere.
If you add this in the beginning of your code, before you initialise GLFW or do anything related to GLFW:
And then add this function to your code:
static void error_callback(int error, const char* description)
You should see the proper error message in the console.
If your code doesn't even compile, there can be lots of reasons. Please provide more specific error message.
I am a bit weary about you using glfwOpenWindow() function, as I can see it mentioned in old documentation, but not in new documentation. The newer version is using glfwCreateWindow(). Which version of GLFW are you using? My compiler can't even find that function. I suggest you go to the "Getting Started" guide on the GLFW web page: http://www.glfw.org/docs/latest/quick.html and compile a newer version of GLFW.
Edited by aregee, 07 August 2014 - 12:10 PM.