Results 1 to 6 of 6

Thread: error: undefined refrence

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2009
    Posts
    14
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default error: undefined refrence

    i have an error in ficgta01 sdk 4.3.2
    header file:
    Qt Code:
    1. #ifndef THIRD_H
    2. #define THIRD_H
    3. #include "ui_third.h"
    4. #include "qcbsmessage.h"
    5. #include <QVariant>
    6. #include <QString>
    7. #include<QWidget>
    8. class third:public QWidget,private Ui_third
    9. {
    10.  
    11. public:
    12. third(QWidget*parent=0,Qt::WFlags f=0);
    13. virtual ~third();
    14. };
    15. #endif
    To copy to clipboard, switch view to plain text mode 
    sourse file :
    Qt Code:
    1. #include "third.h"
    2. #include<QtopiaApplication>
    3. third::third(QWidget*parent,Qt::WFlags f):QWidget(parent,f)
    4. {
    5. setupUi(this);
    6. QCBSMessage *code1=new QCBSMessage();
    7. const uint code=code1->messageCode() ;
    8. QVariant *variant=new QVariant(code);
    9. QString string=variant->toString();
    10. lineEdit->setText(string);
    11. }
    12. third::~third(){}
    To copy to clipboard, switch view to plain text mode 
    error message :
    .obj/debug-shared/third.o: In function `third':
    /home/user/projects/third/third.cpp:6: undefined reference to `QCBSMessage::QCBSMessage()'
    /home/user/projects/third/third.cpp:7: undefined reference to `QCBSMessage::messageCode() const'
    /home/user/projects/third/third.cpp:6: undefined reference to `QCBSMessage::QCBSMessage()'
    /home/user/projects/third/third.cpp:7: undefined reference to `QCBSMessage::messageCode() const'
    collect2: ld returned 1 exit status
    make[1]: *** [third] Error 1
    make[1]: Leaving directory `/home/user/projects/third'
    make: *** [all] Error 2
    please any one tell me what's wrong
    thanks
    Last edited by jpn; 30th April 2009 at 23:54. Reason: missing [code] tags

Similar Threads

  1. Replies: 1
    Last Post: 18th June 2006, 10:12

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
  •  
Qt is a trademark of The Qt Company.