Error Occurs in Sample Make, it Ends in the Middle and Fails

The following is a message when failed in make sample ai.
gcc -Wall -o ai ai.c -lccapaio
/usr/bin/ld: skipping incompatible /usr/lib/libccapaio.so when searching for -lccapaio
/usr/bin/ld: cannot find -lccapaio
collect2: error: ld returned 1 exit status
make: *** [ai] Error 1
Ans:
Because it is described as  /usr/bin/ld: cannot find -lccap***
ld doesn't find the library. Installation may not be completed successfully.

[Confirm]
Is the library such as ccapaio.so or ccapdio.so copied to /usr/lib?

[Solution]
Execute the [make install] command and complete it normally.