This is a linker error.
The point here is, you are telling the compiler to compile this code as an app, not a library, so it expects int main(), which is nowhere in your code.
If this is a school assignment, just adding int main() somewhere below (which you would do anyway to show that it works) should be sufficient.
Or you can build this as a library. For specific instructions how to do it, google your compiler/IDE adding "building a library" - should help.
If, for example, your IDE is MS Visual Studio, google "Visual Studio buidling a library".