AVOIDING mutiple inclusion of header file???
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
Re: AVOIDING mutiple inclusion of header file???
I don't mean to be rude, but what does this have to do with Qt? It's basic C/C++. And please don't shout.
Re: AVOIDING mutiple inclusion of header file???
You can use forward declarations to avoid including header files in other header files, but they will allow you only to declare pointers and references.
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
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.