Results 1 to 5 of 5

Thread: AVOIDING mutiple inclusion of header file???

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2007
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11

    Unhappy multiple inclusion-linker error in QT4.2

    sorry to bother all of u again but i already know how to implement the following in c/c++,

    turbo c++,borland c++, c#, VC++(MFC), java(core), the thing is the problem is peculiar

    with QT.......... and its giving the error........i didn't mean to shout but i was

    desperate......


    HI

    HOW CAN WE AVOID MULTIPLE INCLIUSION OF HEADER FILE IN QT??

    OTHER THAN WRAPPING .H FILE IN #endif,#include etc

    can we give something like:-

    <class_ name> *<class_object> in a header file

    eg if v have a class EUREKA, can v do:-

    EUREKA *e[3];

    to make 3 pointer of type class EUREKA in a .h file

    if not how can v declare such pointers if v have to use them across other classes

    THANK U

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

    Default Re: multiple inclusion-linker error in QT4.2

    Please, don't shout and don't start multiple threads on the same topic.

    Read about forward declarations.

Similar Threads

  1. qt-3.3.8 fail in scratchbox
    By nass in forum Installation and Deployment
    Replies: 0
    Last Post: 25th May 2007, 15:21

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.