This is a link error. You should know this when you see error:ld returned 1 exit status. The situation is that the compiler knows your function declaration but cannot find the implementation. Generally speaking, it is
You really didn’t realize it
You did not link the corresponding library
For IDE, the link library needs to be specified in the project configuration. .
Compilation error, set the linked directories and files.
This is a link error. You should know this when you see
error:ld returned 1 exit status
. The situation is that the compiler knows your function declaration but cannot find the implementation. Generally speaking, it isYou really didn’t realize it
You did not link the corresponding library
For IDE, the link library needs to be specified in the project configuration. .