[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-gsl] GSL is working with Borland
From: |
Totte Karlsson |
Subject: |
[Help-gsl] GSL is working with Borland |
Date: |
Mon, 14 Jan 2008 22:42:22 -0800 |
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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Help-gsl] GSL is working with Borland,
Totte Karlsson <=