|
-
Feb 20th, 2003, 03:11 PM
#1
Thread Starter
Addicted Member
Redefinition Problem
I'm including a header file (screen.h) in calss A that uses some of the functions that screen.h holds. Then I #include class A in class B. And I get redefinition errors. I have #ifndef's and #define's along with #endif's on all the headers. The function call is in the classes cpp file but thats not the definition.
Whats going on?
If I #include screen.h in class A's cpp file it works fine but I have to have those functions for my main.cpp... in which I get the redefinition erros again (once I include it).
What can I do about this? And why isn't #ifndef/#define macros working? Rather how do they work (everything works I just don't know it)
Thanks!
NOMAD
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|