C++ Compile Error: ld returned 1 exit status [How to Solve]

Error log

ld returned 1 exit status

The error reason
LD indicates that the link is wrong. The probability is that the linked library is not found or the library to be linked is not built first

Read More: