Search code examples
visual-studio-2010visual-c++open-sourcegdal

can not open include file expat.h GDAL? How to setup expat XML library?


While setting up GDAL Project, I am stuck with an error

Can not open include file "expat.h". No such file or directory.

error

It is because ogr_expat.cpp has included in code

# include < expat.h >

Solution

  • I have solved it. Just sharing for knowledge.

    Download and Install XML Library in C Drive

    enter image description here

    and give its path in include directories via View.Propery Manager.

    C:\Expat-2.0.0\Source\lib