Hi,

I had the problem that I could compile and link a gsl example program, but
when running, the apllication would crash when using a gsl constant.

 

The problem seems to be the decl specifier for the function definitions. 

 

For each gsl constant that is needed, I prefixed it with
__declspec(dllimport) like below.

 

Instead of

GSL_VAR                             const gsl_multifit_fdfsolver_type *
gsl_multifit_fdfsolver_lmsder;

 

I used this 

__declspec(dllimport)   const gsl_multifit_fdfsolver_type *
gsl_multifit_fdfsolver_lmsder;

 

And that made the trick!

 

This was after creating a import libraries from the gsl dlls using implib
-af. 

 

Observe that the script dll2lib.sh, found on the web generates faulty import
libs for Borland..

 

Thanks

totte

 

ps: I should say that I have only tested a small gsl example nlfit.c.

 

 

_______________________________________________
Help-gsl mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gsl

Reply via email to