Linux上的G++也可以用#pragma once,试之前我也以为不行来的。[/quote]
Compiler #pragma once
Clang 支持[4]
Comeau C/C++ 支持[5]
C++Builder XE3 支持[6]
Digital Mars C++ 支持[7]
GCC 支持[8] ( 3.4版本以后[9])
Intel C++ Compiler 支持[10]
Microsoft Visual C++ 支持[11]
Pelles C 支持[12]
IAR C/C++ 支持[13]