How to setup a C project in Xcode 6.3.* to build with a Makefile -


i adding library #include <igraph.h> can access via

includes=-i/usr/local/include/igraph lflags=-l/usr/local/lib libs=-ligraph 

how create project on mac's xcode , setup equivalent includes, lflags, , libs on xcode 6.3.#? found related so question, doesn't have info need/look for.

the steps took on xcode:

  1. new project > os x > application > command line tube
  2. entered product & organization name; organizational identifier, language=c
  3. i picked folder
  4. on top left project selected, right have build settings, build phases, rules

but if set under build settings > compiled sources :: compiler flags -i/usr/local/include/igraph -l/usr/local/lib -ligraph following warnings:

clang: warning: -ligraph: 'linker' input unused clang: warning: argument unused during compilation: '-l/usr/local/lib' 

along many errors start

undefined symbols architecture x86_64: "_igraph_community_infomap", referenced from: _infomap_weighted_test in ig_read_edgelist.o 

i suspect igraph 64bit library, have double check that.

but, again, looking way generate makefile xcode project allow me compile project on either system.


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -