hi i'm trying install , use gsl library following guide: install gsl on mac. brew installation works fine , can see file in path: /usr/local/include. tried sample c code, when compile gives me error: symbol(s) not found architecture x86_64. searched , referred answer here: g++ error, added -lgsl command, sth like:
g++ -i/usr/local/include -lgsl main.c
but gives: ld: library not found -lgsl error. how can resolve this? thank you!
yeah solution should this:
g++ -i/usr/local/include -l/usr/local/lib -lgsl main.c
this works. refer answer here:install gsl. -i gives headers, while need -l statement link library.
Comments
Post a Comment