Problems linking to ACML

I’m having problems linking to the ACML library. Specifically, I have a hankel function that can’t link to r1mach or i1mach. The errors I get are of the form:

hankel.o(.text+0xfff): In function mhankel_cairy_': : undefined reference to r1mach_’

The linker options I send to the compiler are:

-L/opt/pgi/linux86-64/5.2/libso -lacml

There are LAPACK calls that seem to work fine, so I think I should have the correct linker path given above. What am I doing wrong?

BTW, dual Opterons running RHEL 3WS Update 2.

r1mach, d1mach, and i1mach are not included in either acml or our standard blas library. I believe these are system specific routines that must be downloaded and compiled separately. More on this can be found at’s FAQ page in section 2.17. There are links to the files as well.

Hope this helps!