how to link the libhemtis.a the archive file to my code?

hi,

i am using the hmetis linux version. i have created the hypergraph file and given this file as input to hmetis executable code. The partitions are coming properly.

But, i want to use the hmetis by linking the hmetis archive to my code.
can some one please tell me how to link the archive to my code.

sravan