g++ usage

Fristly, g++ detailed explanation
g++ precess and param meaning
Usage:
let opencv4 as an example ,Here how to set pkg-config for opencv4

g++ `pkg-config --cflags opencv4` drawing.cpp `pkg-config --libs opencv4` -o drawing.out

or

g++ object_detection_yolo.cpp -o object_detection_yolo.out `pkg-config --cflags --libs opencv4`

Be caution:

`pkg-config --cflags opencv4`
` is the key located at top-left corner of keyboard 

你可能感兴趣的:(环境配置)