Quantcast
Channel: Intel® Fortran Compiler
Viewing all articles
Browse latest Browse all 3270

Not using functions out of external libraries

$
0
0

OK, I'm having issues getting ifort to pull in functions out of libraries that weren't included in the intel package.

I had these issues with a copy of the BLAS library I compiled with ifort, but I ended up working around that using mkl.

However, this library I can't work around.    I'm sure it's something I'm doing wrong, or is wrong in the environment.   

I know the function is there in the library, 

nm -g libwsmp64.a | grep wgsmp

 

wgsmp.o:

0000000000001410 T wgsmp

0000000000000000 T wgsmp_

000000000000ad00 T wgsmp1

 

But when I run the compile, I continue to get errors like this.   And this exact file is the example file that's included with the library.

ifort -L /abs_work/wlib/ -lwsmp64 wgsmp_ex1.f

/tmp/ifortOWJLnd.o: In function `MAIN__':

wgsmp_ex1.f:(.text+0x40): undefined reference to `wsetmaxthrds_'

wgsmp_ex1.f:(.text+0x47): undefined reference to `wsmprtc_'

wgsmp_ex1.f:(.text+0xa4): undefined reference to `wgsmp_'

wgsmp_ex1.f:(.text+0xf0): undefined reference to `wsmprtc_'

wgsmp_ex1.f:(.text+0x12b): undefined reference to `wsmprtc_'

wgsmp_ex1.f:(.text+0x17d): undefined reference to `wgsmp_'

 

There are more errors, but it does appear to find the library (there's no -lwsmp64 not found error)

 

Any ideas on what I may be doing wrong ?


Viewing all articles
Browse latest Browse all 3270

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>