Help Linking on Xcode


hi, need xcode.
installed in mac gsl (gnu scientific library) gnu. , have been using without problem. have been using terminal compile code in following way

code:
>g++ -wall -c program.cpp  >g++ program.o -lgsl -lgslcblas -lm
now how can link libraries xcode can compile project xcode.

appreciated. in advance thanks.
 

add libraries xcode project. choose project > add project, or right-click groups , files list open contextual menu lets add files project.

after adding libraries, want make sure linked. click disclosure triangle next targets in groups , files list see target project. click disclosure triangle next target see target's build phases. there should build phase called link binary libraries. make sure libraries in build phase. if not, drag libraries groups , files list link binary libraries build phase.

if can't link @ point, may need add search path libraries. select name of project groups , files list , click info button in project window toolbar. open project's information panel. click build tab on information panel. choose search paths collection menu. add path libraries library search paths setting.
 


Forums Macs Mac Programming


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

Comments

Popular posts from this blog

Currys UK online order nightmare!

Mini-DVI to DVI-I?

New iMac here - LOVING the Mighty Mouse