Results 1 to 6 of 6

Thread: error compile

  1. #1
    Join Date
    Jan 2006
    Posts
    976
    Thanks
    53
    Qt products
    Qt3
    Platforms
    Windows

    Default error compile

    Hi, anyone could say me where 's the errors? Any hints? thanks
    Qt Code:
    1. #include <myprogressdialog.h>
    2. #include <qstring.h>
    3. #include <qwidget.h>
    4. myProgressDialog::myProgressDialog(QWidget***creator,
    5. const*char***name,
    6. bool*modal,
    7. WFlags*f) : progressDialog (creator, name, modal, f) {
    8. }
    To copy to clipboard, switch view to plain text mode 

    Qt Code:
    1. myprogressdialog.cpp(5): error C2597: illegal reference to non-static member 'myProgressDialog::QWidget*creator'
    2. myprogressdialog.cpp(6): error C2597: illegal reference to non-static member 'myProgressDialog::constchar*name'
    To copy to clipboard, switch view to plain text mode 
    Regards

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: error compile

    Are you sure that there are spaces between const and char?

  3. #3
    Join Date
    Jan 2006
    Posts
    976
    Thanks
    53
    Qt products
    Qt3
    Platforms
    Windows

    Default Re: error compile

    yes, but what happen? I see now that in my post there are many ***; maybe but I copy and past from assitant??
    Regards

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: error compile

    Quote Originally Posted by mickey
    yes, but what happen? I see now that in my post there are many ***; maybe but I copy and past from assitant??
    If something looks like a space it not necessarily must be a space. Those could be, for example, non-breaking spaces.

  5. #5
    Join Date
    May 2006
    Location
    Bangalore
    Posts
    23
    Thanks
    3
    Thanked 4 Times in 4 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: error compile

    Can you show your code where you have instanciated myProgressDialog.

    And please make sure that your spaces look like " "(spaces). If possible repost the code in your original post.
    The Keyboard Is Mightier Than The Sword!

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: error compile

    Quote Originally Posted by bits
    And please make sure that your spaces look like " "(spaces).
    That's the problem, they shouldn't look like spaces --- they must be spaces.

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.