I am trying to compile a linked list implementation file that includes a linked list header file. I get this error.

In function `_start':
: undefined reference to `main'
collect2: ld returned 1 exit status


I know that since the implementation file is a cpp file without a main function, it needs some sort of special command when compiling, but I don't know what it is.