[Development] #pragma once

Konstantin Tokarev annulen at yandex.ru
Wed Jan 24 15:12:13 CET 2018

24.01.2018, 17:09, "Thiago Macieira" <thiago.macieira at intel.com>:
> On Wednesday, 24 January 2018 03:53:18 PST Konstantin Tokarev wrote:
>>  That's said, if headers are never copied it's safer to use #pragma once than
>>  include guards
> And you know what copies headers? make install
> If you do an installed build of each module, then the compiler will have to
> add -I for the target as well as for the source dir. So if you build a module
> while that module is already installed, it will find the installed headers and
> include both.

Indeed, I'm hitting this sometimes, when there is ABI break in private header

> That said, I am not sure that type of build works anyway because of this very
> reason and that different library files will be present, causing linking
> errors too.
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel Open Source Technology Center
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development


More information about the Development mailing list