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.










share|improve this question


















  • 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















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.










share|improve this question


















  • 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













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.










share|improve this question













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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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














  • 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












1 Answer
1






active

oldest

votes

















up vote
0
down vote














  1. 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.

  2. Delete glad.c from project folder and add it to project by Solution Explorer > Source Files > Add > Existing Item. Regards.






share|improve this answer





















    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














     

    draft saved


    draft discarded


















    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

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote














    1. 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.

    2. Delete glad.c from project folder and add it to project by Solution Explorer > Source Files > Add > Existing Item. Regards.






    share|improve this answer

























      up vote
      0
      down vote














      1. 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.

      2. Delete glad.c from project folder and add it to project by Solution Explorer > Source Files > Add > Existing Item. Regards.






      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote










        1. 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.

        2. Delete glad.c from project folder and add it to project by Solution Explorer > Source Files > Add > Existing Item. Regards.






        share|improve this answer













        1. 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.

        2. Delete glad.c from project folder and add it to project by Solution Explorer > Source Files > Add > Existing Item. Regards.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered yesterday









        George Theodosiou

        10019




        10019






























             

            draft saved


            draft discarded



















































             


            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            android studio warns about leanback feature tag usage required on manifest while using Unity exported app?

            SQL update select statement

            'app-layout' is not a known element: how to share Component with different Modules