Isn't the "#pragma once" directive in used in a header file supposed to make sure that a header file's declarations be defined only one time? And, as a result, we are not supposed to get a link error that says something is arleady defined?
No, it only insures that the file is included only once in the compilation. If two different files contain the same declaration, you will get the error.
Eric Bustarret
NewLC Founder & CEO / Professional Symbian OS Consultant
Forum posts: 2009
No, it only insures that the file is included only once in the compilation. If two different files contain the same declaration, you will get the error.
Eric Bustarret
NewLC Founder & CEO / Professional Symbian OS Consultant