2010/5/14 Tony Theodore <to...@logyst.com>: > 2010/5/15 Mario Rodríguez <shi...@gmail.com>: >> 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... What is the exact error messages you are seeing? I wouldn't be surprised if you are running into the underscoring issue, and you may need to upgrade to the latest compiler toolchains that has the leading underscores removed for compatibility with the x64 ABI. Doug ------------------------------------------------------------------------------ _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public