GLFW with Visual Studio 2010 on Windows 7

Using GLFW
mosesr
2014-04-20
2014-04-20
  • mosesr
    mosesr
    2014-04-20

    Hi everyone,

    There's a similar thread but it's from 2010 and regards version 2.6 of GLFW.

    I'm trying to run the code from the tutorial on the homepage: http://www.glfw.org/docs/latest/quick.html

    I tried including the headers and libraries from the 32 bit Windows binaries from the download page, but this is what I get when I try to build:

    1>------ Build started: Project: first_glfw_proj, Configuration: Debug Win32 ------
    1>Build started 4/20/2014 5:31:24 PM.
    1>InitializeBuildStatus:
    1> Touching "Debug\first_glfw_proj.unsuccessfulbuild".
    1>ClCompile:
    1> All outputs are up-to-date.
    1> main.cpp
    1>c:\users\moshe\documents\visual studio 2010\projects\first_glfw_proj\first_glfw_proj\main.cpp(1): fatal error C1083: Cannot open include file: 'GLFW/glfw3.h': No such file or directory
    1>
    1>Build FAILED.
    1>
    1>Time Elapsed 00:00:00.21
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

    Anybody know what's going on?

    Thanks a lot

     
  • arampl
    arampl
    2014-04-20

    Hi mosesr!

    For GLFW 2.x you must include "glfw.h", not "glfw3.h".
    But even if you fix this you'll get more errors anyway.
    Don't mix sample application for GLFW 3 and include files & libraries from GLFW 2.x. Many things changed since September, 2007!!!
    Why you don't want to use the latest version? It works very well.

    Regards.