error: ld returned 1 exit status

Resolved

compile log:
Untitled9.cpp:(.text+0x60): undefined reference to `selectionSort(int*, int)'
collect2.exe: error: ld returned 1 exit status

Last edited on
You declare selectionSort() but do not define it anywhere. It needs a body, and the linker ("ld") can't find one.
Topic archived. No new replies allowed.