error linking the libxml2 library (cygwin)

Discussion in 'iOS Development' started by acca2o, Nov 20, 2009.

  1. acca2o

    acca2o New Member

    Joined:
    Sep 26, 2009
    Messages:
    51
    Likes Received:
    0
    Device:
    2G iPod touch
    My goal is to compile my application linking the libxml2 library in my makefile (cygwin toolchain)


    the libxml2 path is:
    cygwin/toolchain/sys/usr/include/libxml2


    I changed the makefile:
    ...
    LDFLAGS = -lobjc
    LDFLAGS += -lxml2
    LDFLAGS += -F"/toolchain/sys/System/Library/Frameworks"
    LDFLAGS += -F"/toolchain/sys/usr/include/libxml2"
    LDFLAGS += -framework Foundation
    LDFLAGS += -framework UIKit
    ...


    building the application I got:
    error: libxml/tree.h: NO such file or directory

    the tree.h file is in cygwin/toolchain/sys/usr/include/libxml2/libxml


    Where am I wrong?
    Thanks
  2. acca2o

    acca2o New Member

    Joined:
    Sep 26, 2009
    Messages:
    51
    Likes Received:
    0
    Device:
    2G iPod touch
    I fixed the problem, thanks a lot.
    bye

Share This Page