help-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-gsl] Trouble with MEX and GSL on Matlab R2010a and Windows XP(32-b


From: Akbari Vahid
Subject: [Help-gsl] Trouble with MEX and GSL on Matlab R2010a and Windows XP(32-bit)
Date: Wed, 19 Jan 2011 16:59:41 +0100

Hi,

I've been trying to compile a c-file using the MEX interface. My c-file
contains calls to functions defined in GSL (Gnu Scientific Library for C),
a pre-existing library which I 've downloaded and installed on my PC.

I have Matlab R2010a, running on Windows XP with a 32-bit processor. The
version of GSL that I have installed was part of the GnuWin32 project, and
supports Windows XP (32-bit). Also my C/C++ compiler is MinGW32 which
already installed on my pc.

Then I use the bellow command in MATLAB to compile the mex file
"mexFisherGradOpt.c". 

Initially when I ran " mex -c mexFisherGradOpt.c -I"C:\GnuWin32\include\"
-lgsl -lgslcblas -lm. It seems that it is compiled.

Once I run the m-file which calls the c-function, MATLAB crashes. 

I have eliminated the possibility of any bug in the c-function that I've
been compiling, by using a function that compiled and ran perfectly in a
previous setup on a different PC (Windows XP, Matlab 2010a, MSVC 6.0) --
which was itself configured with lots of pain.

To sum up, I have a bug-free c-function which I want to compile with MEX.
This c-function contains calls to the GSL. What do I need to do in order
to successfully compile and run my program, given the following
configuration on my PC: Windows XP (32-bit), Matlab R2010a.

Apologies for the long email. Many thanks in advance,

Vahid Akbari-PhD student
University of Tromsø
Tromsø-Norway



reply via email to

[Prev in Thread] Current Thread [Next in Thread]