"instead using GLFW instead of glfw3" Do you mean
-lGLFW?
It should be -lglfw
, I believe. "GLAD fails to initialize" This is a better error compared to "glfw3: no such file or directory", it means linking passes successfully and you get a runtime error (so your code so we can help with debugging).