This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[gcc 2.95.2 on HP-UX 11] Error in sys/pstat.h


Hi,

When compiling this code :

#include <sys/pstat.h>
#include <stdio.h>
main() {
  printf("Hello world !\n");
}


it gives : 

gcc -o test1 test1.cpp
In file included from test1.cpp:1:
/usr/include/sys/pstat.h:272: syntax error before `;'
/usr/include/sys/pstat.h:273: syntax error before `;'
/usr/include/sys/pstat.h:1997: syntax error before `;'
/usr/include/sys/pstat.h:1998: syntax error before `;'
/usr/include/sys/pstat.h:1999: syntax error before `;'
/usr/include/sys/pstat.h:2000: syntax error before `;'
/usr/include/sys/pstat.h:2001: syntax error before `;'
/usr/include/sys/pstat.h:2002: syntax error before `;'
/usr/include/sys/pstat.h:2003: syntax error before `;'
/usr/include/sys/pstat.h:2004: syntax error before `;'
/usr/include/sys/pstat.h:2005: syntax error before `;'
/usr/include/sys/pstat.h:2006: syntax error before `;'
/usr/include/sys/pstat.h:2009: syntax error before `;'
/usr/include/sys/pstat.h:2010: syntax error before `;'
/usr/include/sys/pstat.h:2011: syntax error before `;'
/usr/include/sys/pstat.h:2012: syntax error before `;'
/usr/include/sys/pstat.h:2013: syntax error before `;'
/usr/include/sys/pstat.h:2014: syntax error before `;'
/usr/include/sys/pstat.h:2015: syntax error before `;'
/usr/include/sys/pstat.h:2016: syntax error before `;'
/usr/include/sys/pstat.h:2017: syntax error before `;'
/usr/include/sys/pstat.h:2018: syntax error before `;'
/usr/include/sys/pstat.h:2019: syntax error before `;'
/usr/include/sys/pstat.h:2020: syntax error before `;'
/usr/include/sys/pstat.h:2021: syntax error before `;'
/usr/include/sys/pstat.h:2022: syntax error before `;'
/usr/include/sys/pstat.h:2023: syntax error before `;'
/usr/include/sys/pstat.h:2024: syntax error before `;'
/usr/include/sys/pstat.h:2025: syntax error before `;'
/usr/include/sys/pstat.h:2026: syntax error before `;'
/usr/include/sys/pstat.h:2033: syntax error before `;'

If I compile with -U__STDC_EXT__ it works fine.
aCC doesn't seem to predefine __STDC_EXT__

Is it a bug ?
If yes, from HP header files or from gcc ?


Thanks

Etienne

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]