Search code examples
c++iosxcodelinkergsl

Trouble using gsl/gsl, from brew, on iOS?


  1. brew install gsl - no trouble

  2. quickly make a Mac app which uses gsl, to check it is working. (Handy example here.) - no trouble

  3. are they there in /include and /lib - yes they are

enter image description here

  1. both search paths? yes and marked recursive

enter image description here

  1. linker flags? set as many as possible

enter image description here

  1. Delete derived data, clean everything, restart everything

Result .......

enter image description here

file not found :/

What to do about this tragedy?


Solution

  • For the sake of anyone googling here, user @Amadeus solved the issue:

    • the brew install gsl build does not include /gsl as such

    • you can indeed #include <gsl/gsl_blas.h> or any other

    However!

    • As @Hamish pointed out - unfortunately that build does not include iOS architecture anyway :/