Research‎ > ‎Computer things‎ > ‎

C in Xcode

How to start a simple C program in xcode after using unix

  • File > New Project
  • Application > Command Line Tool
  • Type = C

Using gsl with xcode

  • Right click the project file and select "Get Info" 
  • Select the "Build" tab
  • in "Other Linker Flags" add "-lgsl -lgslcblas"
  • in "Library Search Paths" add "/opt/local/lib"
  • in "Header Search Paths" add "/opt/local/include"
  • add gsl into the file as #include <gsl/gsl_odeiv.h> etc


Comments