Question: Hi, I tried to run the code above (first 3 screenshots) but kept receiving the error message (last screenshot) which says collect2.exe: error: ld returned



Hi, I tried to run the code above (first 3 screenshots) but kept receiving the error message (last screenshot) which says "collect2.exe: error: ld returned 1 exit status." I've saved all files and included headers, why am I still getting that error.
First screenshot: header file
Second screenshot: cpp file
Third screenshot: main file
Fourth screenshot: error message
Thanks!
Test: :print() ' collect2.exe: error: 1d returned 1 exit status PS C: \Users \Admin \Desktop \C++ \ test
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
