metis.h: No such file or directory

Hi

Does anyone know what's wrong with my test program? when I compile using:
> g++ test.cpp -I/home/myname/metis40 -lmetis
it says
> metis.h: No such file or directory

If I remove the #include line then it says
> /usr/bin/ld: cannot find -lmetis

Someone please help I'm stuck on this for a while now. Thank you!

#include "iostream"
#include "metis.h"

/////////////////////////////////////////////////////////////////

#if !defined(__cdecl)
#define __cdecl
#endif

#ifdef __cplusplus
extern "C" {
#endif

void __cdecl
HMETIS_PartRecursive(int ncells, int nnets, int *cellwgt, int *netptr,
int *netind, int *netwgt, int nparts, int ufactor, int *options,
int *part, int *edgecut);

void __cdecl
HMETIS_PartKway(int ncells, int nnets, int *cellwgt, int *netptr,
int *netind, int *netwgt, int nparts, int ufactor, int *options,
int *part, int *edgecut);

#ifdef __cplusplus
}
#endif

/////////////////////////////////////////////////////////////////

int main()
{
HMETIS_PartRecursive(0,0,0,0,0,0,0,0,0,0,0);
}