970929 g++ fails to include <rpc/xdr.h>

Marko Vendelin markov@ioc.ee
Tue Oct 7 23:49:00 GMT 1997


g++ (970929) fails to compile the code that includes
<rpc/xdr.h>. For example, when I tried to compile
--------------------------------------------------
#include <rpc/types.h>
#include <rpc/xdr.h>
main()
{
}
--------------------------------------------------

g++ generated :

prompt> c++ -c xdr.C 
In file included from xdr.C:2:
/usr/include/rpc/xdr.h:257: declaration of `operator ++' as non-function
/usr/include/rpc/xdr.h:257: confused by earlier errors, bailing out

My configuration:
Linux/Alpha, RedHat 4.2, only compilers of egcs are installed (no libs)

marko




More information about the Gcc mailing list