I am trying to run the main.cpp of the course and for it to run correctly i need to import a vecmath.h. In the original code the vecmath.h is already included but i dont know how to use headers and when i tried apreared the follow message:
tarting build…
g++ -fdiagnostics-color=always -g /home/leticia/OpenGL_works/inicialMIT.cpp /home/leticia/OpenGL_works/glad/.c /home/leticia/OpenGL_works/glad/.h -o /home/leticia/OpenGL_works/inicialMIT -lGL -lglfw -ldl -lX11 -lpthread
/home/leticia/OpenGL_works/inicialMIT.cpp:6:10: fatal error: vecmath.h: No such file or directory
6 | #include <vecmath.h>
| ^~~~~
compilation terminated.
and in my code the correction extension is says that vecmath.h do not exist on the directory. How can i correct this?
I tried putting it in my glad folder and using task making so that everything using header there is compiled.
"-fdiagnostics-color=always",
"-g",
"${file}",
"${workspaceFolder}/glad/*.c",
"${workspaceFolder}/glad/*.h",
"-o",
"${fileDirname}/${fileBasenameNoExtension}",
"-lGL",
"-lglfw",
"-ldl",
"-lX11",
"-lpthread"
],
I also tried
"-fdiagnostics-color=always",
"-g",
"${file}",
"${workspaceFolder}/glad/*.c",
"-o",
"${fileDirname}/${fileBasenameNoExtension}",
"-lGL",
"-lglfw",
"-ldl",
"-lX11",
"-lpthread",
"-vecmath.h"
],
Melinda West is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.