vim actually has a whole set of built-in commands and parameters for this.
You get documentation from
:help quickfix
for example
:set makeprg=g++\ -Wall\ main.cc " the default is make :make
will analyze errors and warnings generated by g ++ and let you cycle through locations.
strcat
source share