I apologise for the basic question. I've searched high an low for a simple answer but I have so far been unsuccessful, so I hope this helps other beginner programmers.
I've installed MacPorts and then installed the external library I was after: ImageMagick
. From my research I know that MacPorts put the dylibs in the /opt/local/lib/
folder: image. I also know that the header files are located in the /opt/local/include/ImageMagick/
folder.
I thought I'd start with an example program to see how it ran. I made a new project, a C command line tool, then copied the first example into main.c
. I now want to add the ImageMagick libraries to my project.
How do I then link the files with my Xcode project so that #include <wand/MagickWand.h>
works?