Results 1 to 1 of 1

Thread: error: undefined reference to qInitResources_pbuffers()

  1. #1
    Join Date
    Feb 2012
    Location
    Armenia/Yerevan
    Posts
    400
    Thanks
    15
    Thanked 16 Times in 15 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default error: undefined reference to qInitResources_pbuffers()

    I receive below error when I add:

    Qt Code:
    1. Q_INIT_RESOURCE(pbuffers);
    To copy to clipboard, switch view to plain text mode 

    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 Code:
    1. QT += core gui opengl
    2.  
    3. greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
    4.  
    5. TARGET = PixelBuffersExample
    6. TEMPLATE = app
    7.  
    8.  
    9. SOURCES += main.cpp\
    10. mainwindow.cpp \
    11. cube.cpp \
    12. glwidget.cpp
    13.  
    14. HEADERS += mainwindow.h \
    15. cube.h \
    16. glwidget.h
    17.  
    18. FORMS += mainwindow.ui
    19.  
    20. RESOURCES += \
    21. resource.qrc
    To copy to clipboard, switch view to plain text mode 

    anyone faced this before, plz mention how they solved it.
    Last edited by saman_artorious; 8th April 2013 at 09:51.

Similar Threads

  1. undefined reference to vtable error
    By PaulDaviesC in forum Newbie
    Replies: 4
    Last Post: 20th April 2012, 16:11
  2. Getting Undefined Reference Error
    By A.H.M. Mahfuzur Rahman in forum Qt Programming
    Replies: 2
    Last Post: 22nd June 2009, 02:12
  3. Error - undefined reference qMain
    By tpf80 in forum Newbie
    Replies: 4
    Last Post: 23rd February 2009, 07:54
  4. error undefined reference ...............
    By amit_pansuria in forum Qt Programming
    Replies: 2
    Last Post: 8th June 2007, 14:28
  5. Undefined Reference error!!!
    By Kapil in forum Newbie
    Replies: 25
    Last Post: 28th March 2006, 12:03

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.