08-04-2017 11:24 AM
Hi,
I am trying to use some of SGL functions for machine learning project within Labwindows/CVI 2015. I ran gsl-1.8.exe to install the required files. when I include the libgsl.a in my CVI project, I get link error.
Build Status (XML-ML.prj - Debug)
Link XML-ML.exe
error: Undefined symbol '_gsl_fit_linear_est' referenced in "c:\cvibuild.XML-ML\Debug\CS-XML-ML.obj".
error: Undefined symbol '_gsl_fit_wlinear' referenced in "c:\cvibuild.XML-ML\Debug\CS-XML-ML.obj".
Build failed
I appreciate the help. Thank you.
08-04-2017 08:46 PM
I myself found a turn-around solution by using LoadLibrary to load libgsl.DLL, and not .lib files (libgsl.a)
05-24-2023 10:01 AM
Hi, I am trying to do the same but have not been successful. Can you please suggest what you did?
06-04-2023 08:31 AM
Can you elaborate what "I have been not successful" really means?
Does it crash? REeturn a wrong result? Or you don't really know as you are trying to figure out where to see any possible result?
First thing is that you most likely do not really want to load and call that function when you close the panel?
Next question is if you set the default calling convention for functions in your CVI project to anything else than __cdecl (only relevant for 32-bit, in 64-bit it is always __fastcall anyways)?
Even Microsoft Visual C uses that as default calling convention.
And the GSL library being GNU, it seems very unlikely that it would use __stdcall under Windows.