Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
/MyFolder/main.cpp:5: error: undefined reference to 'Poppler::Document::load(QString const&, QByteArray const&, QByteArray const&)' |
IDE: Qt Creator 2.0.0
Project type: Qt4 Console Application
Selected required modules: QtCore
The following source code was used:
#include <poppler/qt4/poppler-qt4.h> |
The following project file was used:
#-------------------------------------------------
#
# Project created by QtCreator 2010-09-18T12:40:50
#
#-------------------------------------------------
QT += core gui
TARGET = CppGraphExample4
TEMPLATE = app
SOURCES += main.cpp\
dialogmain.cpp
HEADERS += dialogmain.h
FORMS += dialogmain.ui
|
You need to link against the Poppler library. Add the following line to your project file:
LIBS += -L/usr/local/lib -lpoppler-qt4 |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.