I downloaded the latest version of poppler from here. I went into the Qt5 folder, copied the src folder, put it next to my other header and source files. According to this page, all i have to do in order to get poppler working is to include poppler-qt5.h. It seems to be including the file allright, however when including the file, i get the error:
Am i doing something wrong, or is there an error in the source code of poppler?