link 5.1.0 problem

Hello,

I compiled metis-5.1.0 as stationay library using gcc-4.6.3 in ubuntu 12.04. I tried to compile a hellowolrd problem which use only the function METIS_PartGraphRecursive(), but "undefined reference to `METIS_PartGraphRecursive'". This function could be found in libmetis.a by using nm. Do you have some ideas about this?

Thanks very much

RE: how are you linking your

how are you linking your code?

RE: I install this library at

I install this library at /usr/local/metis. I compile the code with "gcc -I /usr/local/metis/include -L /usr/local/metis/lib -lmetis helloworld.c". Thank you!

RE: try putting the -lmetis after

try putting the -lmetis after the helloworld.c

RE: new errows

It works with g++ and icc/icpc, but with gcc I got the following error:

/usr/local/metis/lib/libmetis.a(gklib.c.o): In function `libmetis__rnorm2':
gklib.c:(.text+0x3fc8): undefined reference to `sqrtf'
/usr/local/metis/lib/libmetis.a(gklib.c.o): In function `libmetis__inorm2':
gklib.c:(.text+0x4035): undefined reference to `sqrt'
collect2: ld returned 1 exit status

Are they normal? I compile the library with "make config cc=gcc-4.6 prefix=/usr/local/metis"

RE: you just need to link with

you just need to link with the math library... Just add a -lm after the -lmetis.