Glfw-2.6.tar.gz bugged on x11 [with fix]

nobody wrote on Saturday, October 20, 2007:

I just downloaded glfw-2.6.tar.gz and compiled on x11 (Ubuntu 7.04).
I had the following error

gcc -c -I. -I… -Dlinux -I/usr/X11R6/include -D_GLFW_HAS_XF86VIDMODE -pthread -D_GLFW_HAS_PTHREAD -D_GLFW_HAS_SCHED_YIELD -D_GLFW_HAS_GLXGETPROCADDRESS -D_GLFW_HAS_GLXGETPROCADDRESSARB -D_GLFW_HAS_DLOPEN -D_GLFW_HAS_SYSCONF -Os -Wall -o x11_fullscreen.o x11_fullscreen.c
x11_fullscreen.c: In function ‘_glfwGetClosestVideoMode’:
x11_fullscreen.c:169: error: ‘h’ undeclared (first use in this function)
x11_fullscreen.c:169: error: (Each undeclared identifier is reported only once
x11_fullscreen.c:169: error: for each function it appears in.)

I had to edit x11_fullscreen.c, line 169 and replace h with height.
Hope this helps and keep up the good work.

Fabrizio Villa "fbv"

elmindreda wrote on Saturday, October 20, 2007:

Yup, my mistake. Insufficient testing. It’s already fixed and included in 2.6.1 (which will hopefully be out soon), but thank you for reporting it :slight_smile: