#pragma once

Login to reply to this topic.
Tue, 2007-09-04 21:44
Joined: 2007-09-04
Forum posts: 6

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?


Tue, 2007-09-04 22:17
NewLC AdministratorSymbian AccreditedForum Nokia Champion
Joined: 2003-01-14
Forum posts: 2009
Re: #pragma once

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

  • Login to reply to this topic.