In function 'void display()':
53:15: warning: 'first' is used uninitialized in this function [-Wuninitialized]
That is not the only problem in your program.
What is the purpose of 'myList'? You don't use it.
Why does the 'buildListForward' return a pointer? You don't use that value.
In function 'int main()':
C:\Martin\MalikChapter5\buildListForwardRevision.cpp:63:12: error: 'class linkedList' has no member named 'buildListForward'
myList.buildListForward();
^
Process terminated with status 1 (0 minute(s), 0 second(s))
1 error(s), 0 warning(s) (0 minute(s), 0 second(s))
error: 'class linkedList' has no member named 'buildListForward'
The code you have given (at the moment) doesn't have a member function called 'buildListForward' ... although there is a non-member function of that name.
Need to see your actual code eliciting that error, please.