User forums > General (but related to Code::Blocks)
Third-party libraries: adding GSL to CODE::blocks
humesit:
sry the actual pre-compiled libary of gsl is version 1.1, whereas actal version of gsl is 1.8... :?
dmoore:
http://gnuwin32.sourceforge.net/packages/gsl.htm
nenin:
You should use msys to build GSL under Win. There are no problems at all. Start msys, cd to gsl folder, run configure with options (like CPU tune), than run make. After all you got set of *.a files in gsl-1.10/.lib folder. Than copy appropriate libs (libgsl.a) to mingw/lib/gsl and header from gsl-1.10/gsl to mingw/include. May be, it will be necessary to copy libgslcblas.a as well.
Biplab:
Few tips:
1) To build dll of GSL, add -mno-undefined to LDFLAGS while compiling. Correct sequence of commands can be-
--- Code: ---./configure --enable-shared --prefix=/mingw
make LDFLAGS=-mno-undefined
--- End code ---
2) If possible use cross-compiler to build GSL. From my experience, compiling GSL under MSYS is 2-3 times slower than a cross-compilation.
nenin:
--- Quote from: Biplab on November 03, 2008, 05:35:17 pm ---Few tips:
<****>
2) If possible use cross-compiler to build GSL. From my experience, compiling GSL under MSYS is 2-3 times slower than a cross-compilation.
--- End quote ---
It is necessary ~ 2 times per year. :wink:
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version