Cannot open include file: 'linmath.h'
up vote
-1
down vote
favorite
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-GLADglfwinclude" and "C:GLFW-GLADgladinclude".
1.2. Linker > General > "Additional Library Directories" window > "C:GLFW-GLADglfwlib-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.
c++ glfw
add a comment |
up vote
-1
down vote
favorite
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-GLADglfwinclude" and "C:GLFW-GLADgladinclude".
1.2. Linker > General > "Additional Library Directories" window > "C:GLFW-GLADglfwlib-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.
c++ glfw
3
Is there any such file on your system? Where is it?
– Tim Randall
Oct 31 at 15:58
Exactly, your job as a programmer is to figure out why the compiler can not find the file in it's include paths. We don't know what is on your disk so its difficult to help..
– drescherjm
Oct 31 at 15:59
Sounds like you'll need to grab the .h file from here and put it somewhere the compiler can see it. github.com/datenwolf/linmath.h
– enhzflep
Oct 31 at 16:03
add a comment |
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
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-GLADglfwinclude" and "C:GLFW-GLADgladinclude".
1.2. Linker > General > "Additional Library Directories" window > "C:GLFW-GLADglfwlib-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.
c++ glfw
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-GLADglfwinclude" and "C:GLFW-GLADgladinclude".
1.2. Linker > General > "Additional Library Directories" window > "C:GLFW-GLADglfwlib-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.
c++ glfw
c++ glfw
asked Oct 31 at 15:55
George Theodosiou
10019
10019
3
Is there any such file on your system? Where is it?
– Tim Randall
Oct 31 at 15:58
Exactly, your job as a programmer is to figure out why the compiler can not find the file in it's include paths. We don't know what is on your disk so its difficult to help..
– drescherjm
Oct 31 at 15:59
Sounds like you'll need to grab the .h file from here and put it somewhere the compiler can see it. github.com/datenwolf/linmath.h
– enhzflep
Oct 31 at 16:03
add a comment |
3
Is there any such file on your system? Where is it?
– Tim Randall
Oct 31 at 15:58
Exactly, your job as a programmer is to figure out why the compiler can not find the file in it's include paths. We don't know what is on your disk so its difficult to help..
– drescherjm
Oct 31 at 15:59
Sounds like you'll need to grab the .h file from here and put it somewhere the compiler can see it. github.com/datenwolf/linmath.h
– enhzflep
Oct 31 at 16:03
3
3
Is there any such file on your system? Where is it?
– Tim Randall
Oct 31 at 15:58
Is there any such file on your system? Where is it?
– Tim Randall
Oct 31 at 15:58
Exactly, your job as a programmer is to figure out why the compiler can not find the file in it's include paths. We don't know what is on your disk so its difficult to help..
– drescherjm
Oct 31 at 15:59
Exactly, your job as a programmer is to figure out why the compiler can not find the file in it's include paths. We don't know what is on your disk so its difficult to help..
– drescherjm
Oct 31 at 15:59
Sounds like you'll need to grab the .h file from here and put it somewhere the compiler can see it. github.com/datenwolf/linmath.h
– enhzflep
Oct 31 at 16:03
Sounds like you'll need to grab the .h file from here and put it somewhere the compiler can see it. github.com/datenwolf/linmath.h
– enhzflep
Oct 31 at 16:03
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
- Add to project (by Solution Explorer > Source Files > Add > New Item > Header File) header file linmath.h. Go to https://github.com/glfw/glfw/blob/master/deps/linmath.h copy code and paste in linmath.h code area.
- Delete glad.c from project folder and add it to project by Solution Explorer > Source Files > Add > Existing Item. Regards.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
- Add to project (by Solution Explorer > Source Files > Add > New Item > Header File) header file linmath.h. Go to https://github.com/glfw/glfw/blob/master/deps/linmath.h copy code and paste in linmath.h code area.
- Delete glad.c from project folder and add it to project by Solution Explorer > Source Files > Add > Existing Item. Regards.
add a comment |
up vote
0
down vote
- Add to project (by Solution Explorer > Source Files > Add > New Item > Header File) header file linmath.h. Go to https://github.com/glfw/glfw/blob/master/deps/linmath.h copy code and paste in linmath.h code area.
- Delete glad.c from project folder and add it to project by Solution Explorer > Source Files > Add > Existing Item. Regards.
add a comment |
up vote
0
down vote
up vote
0
down vote
- Add to project (by Solution Explorer > Source Files > Add > New Item > Header File) header file linmath.h. Go to https://github.com/glfw/glfw/blob/master/deps/linmath.h copy code and paste in linmath.h code area.
- Delete glad.c from project folder and add it to project by Solution Explorer > Source Files > Add > Existing Item. Regards.
- Add to project (by Solution Explorer > Source Files > Add > New Item > Header File) header file linmath.h. Go to https://github.com/glfw/glfw/blob/master/deps/linmath.h copy code and paste in linmath.h code area.
- Delete glad.c from project folder and add it to project by Solution Explorer > Source Files > Add > Existing Item. Regards.
answered yesterday
George Theodosiou
10019
10019
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53087464%2fcannot-open-include-file-linmath-h%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
3
Is there any such file on your system? Where is it?
– Tim Randall
Oct 31 at 15:58
Exactly, your job as a programmer is to figure out why the compiler can not find the file in it's include paths. We don't know what is on your disk so its difficult to help..
– drescherjm
Oct 31 at 15:59
Sounds like you'll need to grab the .h file from here and put it somewhere the compiler can see it. github.com/datenwolf/linmath.h
– enhzflep
Oct 31 at 16:03