Problem Using g++ on Max OS : Undefined symbols for architecture x86_64
Basic Info:  

1. system: macOS High Sierra(10.13.6)  
2. editor : vs code(latest version)  
3. Compiler: g++ (Xcode)  
4. Target：deploy GLFW + GLAD 
 
Question Description:  
Recently, I'm learning to do some Computer Graphics related work. Everything is going smooth. However, when i create a window to test the env.Link error happened:  

    Undefined symbols for architecture x86_64:
    "_gladLoadGLLoader", referenced from:
      _main in main-5c211c.o
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    The terminal process terminated with exit code: 1

It seems I have not link some third party file. **I
have fixed exactly the same problem by add "-lglfw" args  to g++ when using functions in glfw3.h.**  
But when meeting **glad related** function : gladLoadGLLoader, I don't know how to do.  

Something I have done:  

1. Can find the head file.

        #include glad/glad.h  
        #include GLFW/glfw3.h  
     
2. Have put the file "glad.c" in workspace.  
5. Add "g++ -L or I /usr/lib or /usr/local/lib or /usr/local/include", But doesn't work.  

Thanks in advance!