[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


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 *


I used this 

__declspec(dllimport)   const gsl_multifit_fdfsolver_type *


And that made the trick!


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


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





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



reply via email to

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