C++ and C Build and Compile Option
// Compile C Source to Object
gcc -Wall -c  myfile.c

// Cpp compile with library
g++ -std=c++14 -I/path/mylib   -o myfile myfile.cpp
g++ -std=c++11 -I/path/mylib   -o myfile myfile.cpp
C++ build OpenGL
// Both g++ and clang
clang -framework GLUT -framework OpenGL -framework Cocoa check_opengl.cpp -o check_opengl 
g++   -framework GLUT -framework OpenGL -framework Cocoa check_opengl.cpp -o check_opengl 
C++ build OpenCV
g++ -std=c++14 -I$b/cpplib $(pkg-config --cflags --libs opencv) file.cpp -o file 
Build OpenGL and OpenCV
// Just combine them
g++ -framework GLUT -framework OpenGL -framework Cocoa check_opengl.cpp -o check_opengl 
g++ -std=c++14 -I$b/cpplib $(pkg-config --cflags --libs opencv) file.cpp -o file 
Add C++ Standard Library and Language Dialect in Xcode


Add Search Path to Xcode for C++ development