[Bug preprocessor/39029] #pragma once is not "exported" from the precompiled headers

olafvdspek at gmail dot com gcc-bugzilla@gcc.gnu.org
Mon Feb 21 09:44:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39029

--- Comment #3 from Olaf van der Spek <olafvdspek at gmail dot com> 2011-02-21 09:37:03 UTC ---
g++ -o b.h.gch a.h 
g++ c.cpp 

a.h:
#pragma once // a.h:1:9: warning: #pragma once in main file

c.cpp:
#include "b.h"
#include "b.h" // c.cpp:2:15: error: b.h: No such file or directory

int main()
{
}



More information about the Gcc-bugs mailing list