Does the #pragma once apply to a single include file or to everything?
UPDATE : Understood, it spreads to the file itself. Then why, when I specified #pragma once in the file and try to connect it to other (several) files, I get linking errors:
1>error LNK2005: "void __cdecl logit(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,int,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?logit@@YAXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H0@Z) already defined in file2.obj 1>error LNK2005: "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl GetTime(void)" (?GetTime@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ) already defined in file2.obj 1>error LNK2005: "void __cdecl GetDate(void)" (?GetDate@@YAXXZ) already defined in file2.obj 1>fatal error LNK1169: one or more multiply defined symbols found