brew install gsl not working #3141
-
Hi there, I'm trying to install gsl on my Apple Silicon M1 using brew and the documentation says to type "brew install gsl". When I do this, it says: Any suggestions as to how to link gsl to the c++ compiler? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Solution from @rouzbehy: |
Beta Was this translation helpful? Give feedback.
-
Try passing |
Beta Was this translation helpful? Give feedback.
-
You should avoid referring to
or
Alternatively, these should work too as long as you've never done
|
Beta Was this translation helpful? Give feedback.
Solution from @rouzbehy:
g++ -Wall -I/opt/homebrew/Cellar/gsl/2.7.1/include -c test.cpp -o test.o
g++ -L/opt/homebrew/Cellar/gsl/2.7.1/lib test.o -lgsl -lgslcblas -o test.out