Josselin wrote:My dll is compiled with msys.
I do a dll with my visual studio project.
Do you mean to say that you're creating a dll project in Visual Studio? (Note that compiling the GotoBLAS2 dll in MSYS is a different issue and must not be confused.)
If you are creating a dll project in Visual Studio, you may want to first try a writing small console application in order to test your GotoBLAS2 build.
Try the sample program here
http://www.cs.rochester.edu/~bh/cs400/using_lapack.htmlIf you've (saved your file as *.cpp and are) compiling with C++, rename the prototypes
void dgesv_( )
void dgels_( )
in the above program to
extern "C" void dgesv_( )
extern "C" void dgels_( )
and don't forget to use the "Multithreaded-Debug (/MTd)" runtime library.
Josselin wrote:I use /MTd or MT but it doesn t work.
What exactly do you mean? What errors are you getting?
If you are creating a dll in visual studio, use the Multi-threaded Debug DLL (/MDd) runtime library.
I've got two visual studio projects in my solution file, both using LAPACK. The first one is a console application and therefore uses the "Multithreaded-Debug (/MTd)" runtime library while the second is dll (AutoDesk Maya Plugin) and therefore uses the Multi-threaded Debug DLL (/MDd) runtime library. Why? because dlls and console applications (debug or release) cannot link against the same version of the C or C++ runtime library.
See:
http://www.davidlenihan.com/2008/01/cho ... untim.html