Results 1 to 15 of 15

Thread: problem with forward declaration

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #13
    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: problem with forward declaration

    Quote Originally Posted by MarkoSan View Post
    CMerchandizeBrowserPrivate is defined in .cpp file.
    Is the definition placed before the lines mentioned in error messages?

    Quote Originally Posted by MarkoSan View Post
    I think I will get some replies that defining class in .cpp file is not ok...
    No, there's nothing wrong with it, but you won't be able to use that class outside that .cpp file.

  2. The following user says thank you to jacek for this useful post:

    MarkoSan (7th January 2008)

Similar Threads

  1. Forward Class declaration ERROR
    By nleverin in forum Qt Programming
    Replies: 1
    Last Post: 30th July 2007, 08:35
  2. Forward declaration with std namespace
    By Raistlin in forum General Programming
    Replies: 2
    Last Post: 5th March 2007, 20:45
  3. Why forward declaration ?
    By probine in forum General Programming
    Replies: 3
    Last Post: 26th January 2007, 18:22
  4. QTextBrowser Problem
    By Cutey in forum Qt Programming
    Replies: 1
    Last Post: 19th January 2007, 10:19
  5. Compilation problem, don't know why
    By yellowmat in forum Newbie
    Replies: 6
    Last Post: 2nd March 2006, 15:36

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.