From: Tony T. <to...@lo...> - 2010-05-14 20:02:24
|
On 15 May 2010 05:28, Doug Semler <dou...@gm...> wrote: > 2010/5/14 Tony Theodore <to...@lo...>: >> 2010/5/15 Mario Rodríguez <sh...@gm...>: >>> Hi, >>> >>> I want to use *MKL*`s lapack & BLAS in my *mingw* project. >>> >>> I use this libraries for 32 bits linking: mkl_intel_c_dll.lib, >>> mkl_intel_thread_dll.lib, mkl_core_dll.lib. In 32b arquitecture, it´s >>> enought adding this files names at the end of the g++ linking line. >>> >>> But in 64 bits (using mingw-w64 project), it show me undefined >>> references in all blas/lapack calls. I use: >>> >>> -mkl_intel_lp64_dll.lib >>> -mkl_intel_thread_dll.lib >>> -mkl_core-dll.lib >>> >>> It is possible to do? Maybe using dlltool/reimp or some tool similar? >>> >>> Thanks in advance! >> >> Try the link advisor [1], selecting Linux to see the gcc options, to >> get some hints - and see the common errors [2] . Note also, you >> probably want ilp64 not lp64. >> >> Cheers, >> >> Tony >> >> [1] http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/ >> [2] http://software.intel.com/en-us/articles/intel-math-kernel-library-intel-mkl-for-linux-common-linking-errors/ >> > > No, the Mingw 64 target is llp64, not ilp64...it's 32bit longs for > x64 targets. (sizeof(long) == 4, sizeof(long long) == 8, sizeof(void*) > == 8)...ilp64 is sizeof(long) == 8, which is wrong... Ah, I see, thanks. It's just that Intel recommend ilp64, even though they ship both libs - maybe they should distribute the source ;) Tony |