Le mardi 13 mai 2014 16:44:03, David Tran a écrit :
> Hi
>
> test.pro
>
> > TEMPLATE = app
> > TARGET = test
> > DEPENDPATH += $$PWD/src $$PWD/include
> > INCLUDEPATH += $$PWD/src $$PWD/include
> > SOURCES += src/main.cpp
>
> main.cpp
>
> > //#include "ogr_api.h"
> > #include "ogrsf_frmts.h"
>
Hi
test.pro
TEMPLATE = app
TARGET = test
DEPENDPATH += $$PWD/src $$PWD/include
INCLUDEPATH += $$PWD/src $$PWD/include
SOURCES += src/main.cpp
main.cpp
//#include "ogr_api.h"
#include "ogrsf_frmts.h"
int main() {}
It compiles fine with #include "ogr_api.h", but with #include
"ogrsf_frmts.h"