logo

Linking against GSL With Xcode
Further to the previous comment, you can also link against GSL from within an Xcode project:
  • Create an Xcode "C++ Tool" project from the command line projects options.

    GSL 1
  • Within the project Ctrl+Click on the project name, and select "Get Info"

    GSL 2
  • Use the Spotlight-esque search at the top of this window to search for Compiler, and select the "Other C++ Flags" text box.

    GSL 3
  • Into the box enter
    -I/opt/local/include -L/opt/local/lib -lgsl
    leave the
    $(OTHER_CFLAGS)
    existing input there.

    GSL 3

  • You should then be able to use the Build command in Xcode to build the project linked against GSL. This assumes that you install GSL from MacPorts as documented previously.

Tagged in: Code, ic.ac.uk
 
previous posts
contact details
gps logs
 
Fran Buckland [people]
hippy [people]
Andy Davidson [people]
Gem Atkinson [people]
rjs ssh key [tech]
rjs pgp key [tech]
londonfgss [cycling]
Rollapaluza [cycling]
CS Grupetto [cycling]
atom [rob.sh]
notebooks [rob.sh]
admin [rob.sh]
rss [rob.sh]
Stolen Bikes [london]
inhabitat [green]
core77 [design]