If I remember correctly, in pure VS C/C++ projects using precompiled headers (ie. with stdafx.h/stdafx.c (or cpp) ), when using #pragma once in stdafx.h, the compiler doesn’t fail. That’s why I’m surprised of seeing that problem with ROS.

 

Hermès

 

De : Ros-dev [mailto:ros-dev-bounces@reactos.org] De la part de Amine Khaldi
Envoyé : samedi 5 mars 2016 16:10
À : ros-dev@reactos.org
Objet : Re: [ros-dev] Build Crash Revision 70918

 

Hi Amine, why haven't the build bots complained about the #pragma once? (and
the more fundamental question: why does the #pragma once make compilation
fail for *some* people?)

Hi,

The pragma issue makes compilation break for *all* people except those who have PCH set to 0. As to build bots, I assume they are using ccache builds with PCH turned off.

Cheers,
Amine.