c ++ libxml2 xmlReadFile未在此范围内声明

时间:2014-04-27 07:22:27

标签: c++ windows qt qt-creator libxml2

我在我的Qt项目中使用libxml2我在linux上创建它,然后就可以了。现在我在Windows上编译它,我有这个错误。

 C:\Users\Martin\Desktop\Prace-revize\revize\mainwindow.cpp:52: Error: 'xmlReadFile' was not declared in this scope
             doc = xmlReadFile(jmenoSouboru.c_str(), NULL, 0);
                                                            ^

omg每次写的时候我必须写更多细节

项目文件:

#-------------------------------------------------
#
# Project created by QtCreator 2014-03-25T07:37:57
#
#-------------------------------------------------

QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = revize
TEMPLATE = app


SOURCES += main.cpp\
        mainwindow.cpp \
    pridani.cpp

HEADERS  += mainwindow.h \
    knihovna.h \
    miniz.h \
    pridani.h \
    datum.h

FORMS    += mainwindow.ui \
pridani.ui

QMAKE_CXXFLAGS +=-std=gnu++11


win32: LIBS += -L$$PWD/../../../../../knihovny/libxml2/lib/ -lxml2

INCLUDEPATH += $$PWD/../../../../../knihovny/libxml2/include
DEPENDPATH += $$PWD/../../../../../knihovny/libxml2/include


win32-g++: PRE_TARGETDEPS += $$PWD/../../../../../knihovny/libxml2/lib/libxml2.a

一切都在这个C:\ knihovny \ libxml2

0 个答案:

没有答案