Hi,

I am trying to use the gsl library in a C mex file to be called from matlab.
Matlab is not fast enough so I am trying to code some modules on C and call
them from matlab.
I first compile the computational routine of the mex file on gcc

gcc -c testgslsource.c

then from within MATLAB I build the mex file by linking the object file from
testgslsource to the mex getaway routine and the gsl libraries

mex testgsl.c testgslsource.o -lm -lgsl -lgslcbla

It seem to compile fine but when I run it I get the following error...

Invalid MEX-file 'mypath/testgsl.mexsol': ld.so.1:
/ssc/matlab7/bin/sol2/MATLAB: fatal: relocation error: file
/ssc/lib/libgsl.so.0: symbol __eprintf: referenced symbol not found.

Any ideas what is going on?
Any help would be so much appreciated...
Thanks !
J
_______________________________________________
Help-gsl mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gsl

Reply via email to