An image pickup apparatus has the capability of easily linking a stored image
to another stored image. When an image is taken, link information indicating the
linking relationship between the taken image and data to which the taken image
is linked is generated. Also provided is a method of controlling such an image
pickup apparatus and a storage medium storing a program according to which the
image pickup apparatus is controlled.