It doesn't seem to find the main function. Are you only compiling display.cpp? Make sure you have added both main.cpp and display.cpp to the same project.
I press the build icon when I have the main.cpp file opened. Not sure if that is how I add it to the project, I have also tried to right click on project name and clicking 'Add files recursively' with no success. If its a problem caused by my paths not working, how would I fix it? Sorry I am all over the place I am new to c++ and do not really know where to start to figure this out.