Results 1 to 3 of 3

Thread: Redefinition Problem

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2011
    Posts
    203
    Thanks
    7
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Redefinition Problem

    Hi Guys,

    I'm inheriting a class as below:

    class ClassA : public ClassBase

    However, to do so, I need to include "ClassBase" but when I compile it, I get a redefinition error. Bit of a catch 22 don't you think? P.S. I've used header guards.
    Last edited by Atomic_Sheep; 25th August 2013 at 13:53.

Similar Threads

  1. How can i prevent class redefinition problem ?
    By ankurjain in forum General Programming
    Replies: 5
    Last Post: 26th May 2006, 02:35

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.