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:
- new project > os x > application > command line tube
- entered product & organization name; organizational identifier, language=c
- i picked folder
- 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
Post a Comment