You should compile with g++
, not gcc
because it’s C compiler and <vector>
is a C++ header file (not mentioning <vecotr>
which is a typo)
If you have to use C compiler, you have to remove all C++ dependencies from header files which are included from the C sources.
solved Compile c/c++ program using gcc [closed]