You should turn on "VectorDouble.h", not "VectorDouble.cpp"on Main.cpp.
The whole concept of include files in C ++ is different in different ways compared to many other languages.
++ "" "". - , , . VectorDouble.cpp , VectorDouble.h .
#include ++ . , . #include , .
#include , , , #include. "VectorDouble.cpp". , , , .
, . , inline, definition. , , inline . , , , .
, , . , , . , - . , , , .