From: Brian D. <br...@de...> - 2008-10-20 17:22:07
|
Mads Dyrholm wrote: > ... so it is depending on the contents of blas.dll and lapack.dll. > It works perfectly for my application, but what if I later want to use > another lapack or blas dll with a different name than provided on the > above link command? - would it be possible to use my foo.dll with, > say, "optimizedlapack.dll" instead of "lapack.dll" without re-linking > foo.dll ? Not as written, because when you link to a DLL its name is encoded into the import section of the resulting binary. It's possible to do this but you'd have to rewrite your code such that you dynamically access the library at runtime with LoadLibrary() and only call routines in it through function pointers obtained by GetProcAddress(). Brian |