compile error help no member function declared in class

CS162prog4.cpp:17:28: error: no ‘void Subject_List::display()’ member function declared in class ‘Subject_List’
void Subject_List::display()
^
Above is the error message I get when I try to compile my files
The file data is as follows

http://imgur.com/a/vhyTR

Not sure what is wrong any help is appreciated
Last edited on
Figured it out I guess, not sure why this happens.

But if you look inside your working folder a similar files named after my header .h file was in there except is has .gch at the end.

deleting this file allowed my files to compile correctly....

Why is this? Kind of annoying waste of time for me to figure out.
.gch are precompiled headers
The idea is to avoid processing it each time an #include is found. In your case, you've got an error because the precompiled header was outdated.

So it is an issue with your IDE/makefile/commands as it should have been updated or never a candidate for precompiled header.


> But if you look inside your working folder a similar files named after my
> header .h file was in there except is has .gch at the end.
¿who are you talking to? we don't have access to your filesystem.
we don't even have access to your code, as you posted images.
(really, ¿how do you think we can work with that?)
Last edited on
Thanks for the answer, I think I know what happened to create the outdated precompile.

Im remoting into the schools computer through putty and while editing was disconnected and when I logged back in it said it was already being edited by me.

Thanks again, was annoying me because I was looking at my code for an hour trying to figure out what was wrong.
Topic archived. No new replies allowed.