Skip to main content
Clearer
Source Link

I have set up GLFW and GLAD in Visual Studio 2017 as follows:
I created in C: directory, folder GLFW-GLAD, and put in there, "glfw" (Windows pre-compiled binaries, 32-bit Windows binaries) as well "glad". Also in V.S., I created Empty Project "Project-0" and Source file "Main.cpp".

  1. In project GLFW-GLAD's "Properties", Configuration: [All Configurations], Platform: [Active(Win32)], Configuration Properties:
    1.1. C/C++ > General > "Additional Include Directories" window > "C:\GLFW-GLAD\glfw\include" and "C:\GLFW-GLAD\glad\include".
    1.2. Linker > General > "Additional Library Directories" window > "C:\GLFW-GLAD\glfw\lib-vc2015"
    1.3. Linker > Input > "Additional Dependencies" window > "opengl32.lib; glfw3.lib; glfw3dll.lib".
    1.4. Linker > System > Subsystem > Console (/SUBSYSTEM:CONSOLE)
  2. In project folder "Project-0" I have pasted files: "glad.c" and "glfw3.dll".
    I copied program from https://www.glfw.org/docs/latest/quick.html and pasted in Main.cpp code area. I attempted run it but failed. Output is
    "fatal error C1083: Cannot open include file: 'linmath.h': No such file or directory"
    Please help.

I have set up GLFW and GLAD in Visual Studio 2017 as follows:
I created in C: directory, folder GLFW-GLAD, and in V.S., Empty Project "Project-0" and Source file "Main.cpp".

  1. In project GLFW-GLAD's "Properties", Configuration: [All Configurations], Platform: [Active(Win32)], Configuration Properties:
    1.1. C/C++ > General > "Additional Include Directories" window > "C:\GLFW-GLAD\glfw\include" and "C:\GLFW-GLAD\glad\include".
    1.2. Linker > General > "Additional Library Directories" window > "C:\GLFW-GLAD\glfw\lib-vc2015"
    1.3. Linker > Input > "Additional Dependencies" window > "opengl32.lib; glfw3.lib; glfw3dll.lib".
    1.4. Linker > System > Subsystem > Console (/SUBSYSTEM:CONSOLE)
  2. In project folder "Project-0" I have pasted files: "glad.c" and "glfw3.dll".
    I copied program from https://www.glfw.org/docs/latest/quick.html and pasted in Main.cpp code area. I attempted run it but failed. Output is
    "fatal error C1083: Cannot open include file: 'linmath.h': No such file or directory"
    Please help.

I have set up GLFW and GLAD in Visual Studio 2017 as follows:
I created in C: directory folder GLFW-GLAD, and put in there, "glfw" (Windows pre-compiled binaries, 32-bit Windows binaries) as well "glad". Also in V.S. I created Empty Project "Project-0" and Source file "Main.cpp".

  1. In project GLFW-GLAD's "Properties", Configuration: [All Configurations], Platform: [Active(Win32)], Configuration Properties:
    1.1. C/C++ > General > "Additional Include Directories" window > "C:\GLFW-GLAD\glfw\include" and "C:\GLFW-GLAD\glad\include".
    1.2. Linker > General > "Additional Library Directories" window > "C:\GLFW-GLAD\glfw\lib-vc2015"
    1.3. Linker > Input > "Additional Dependencies" window > "opengl32.lib; glfw3.lib; glfw3dll.lib".
    1.4. Linker > System > Subsystem > Console (/SUBSYSTEM:CONSOLE)
  2. In project folder "Project-0" I have pasted files: "glad.c" and "glfw3.dll".
    I copied program from https://www.glfw.org/docs/latest/quick.html and pasted in Main.cpp code area. I attempted run it but failed. Output is
    "fatal error C1083: Cannot open include file: 'linmath.h': No such file or directory"
    Please help.
Source Link

Cannot open include file: 'linmath.h'

I have set up GLFW and GLAD in Visual Studio 2017 as follows:
I created in C: directory, folder GLFW-GLAD, and in V.S., Empty Project "Project-0" and Source file "Main.cpp".

  1. In project GLFW-GLAD's "Properties", Configuration: [All Configurations], Platform: [Active(Win32)], Configuration Properties:
    1.1. C/C++ > General > "Additional Include Directories" window > "C:\GLFW-GLAD\glfw\include" and "C:\GLFW-GLAD\glad\include".
    1.2. Linker > General > "Additional Library Directories" window > "C:\GLFW-GLAD\glfw\lib-vc2015"
    1.3. Linker > Input > "Additional Dependencies" window > "opengl32.lib; glfw3.lib; glfw3dll.lib".
    1.4. Linker > System > Subsystem > Console (/SUBSYSTEM:CONSOLE)
  2. In project folder "Project-0" I have pasted files: "glad.c" and "glfw3.dll".
    I copied program from https://www.glfw.org/docs/latest/quick.html and pasted in Main.cpp code area. I attempted run it but failed. Output is
    "fatal error C1083: Cannot open include file: 'linmath.h': No such file or directory"
    Please help.