Author Topic: GNU Win's GSL library and code blocks????  (Read 8734 times)

Offline DrBwts

  • Single posting newcomer
  • *
  • Posts: 5
GNU Win's GSL library and code blocks????
« on: March 06, 2013, 10:40:30 pm »
OK I am trying to use GSL in CodeBlocks (am I crazy?)

I have the version from GNU Win that sets itself up. My problem is that accessing the functions from CodeBlocks.

I searched the forum and followed the advice but it still wont compile (GNU GCC) my programs as I get "No such file or directory" as soon as the first GSL header is found.

I have put paths to 'libgsl.a' &  'libgslblas.a' in the linker settings. I have put the path '\GnuWin32\include\gsl' in the search directory for the compiler & linker (along with GnuWin32\lib in the linker search path).

But still get the "No such file or directory error.

What am I missing?


Offline stahta01

  • Lives here!
  • ****
  • Posts: 7668
    • My Best Post
Re: GNU Win's GSL library and code blocks????
« Reply #1 on: March 06, 2013, 11:25:04 pm »
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F

Post the "build log" (not the build messages) and the includes it is having issues finding.

Tim S.
« Last Edit: March 06, 2013, 11:27:31 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline DrBwts

  • Single posting newcomer
  • *
  • Posts: 5
Re: GNU Win's GSL library and code blocks????
« Reply #2 on: March 06, 2013, 11:50:26 pm »
Thanks I think I have worked it out.

The headers in my code were "gsl/gsl_...." I needed to point at just the "include" direcetory not the "include/gsl" directory.