PDA

View Full Version : error: undefined reference to qInitResources_pbuffers()



saman_artorious
8th April 2013, 10:42
I receive below error when I add:


Q_INIT_RESOURCE(pbuffers);


error: undefined reference to qInitResources_pbuffers()

Image is added to resource.qrc, I read a pre-posted thread about this, but it did not help. here's .pro file:


QT += core gui opengl

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = PixelBuffersExample
TEMPLATE = app


SOURCES += main.cpp\
mainwindow.cpp \
cube.cpp \
glwidget.cpp

HEADERS += mainwindow.h \
cube.h \
glwidget.h

FORMS += mainwindow.ui

RESOURCES += \
resource.qrc



anyone faced this before, plz mention how they solved it.