C Headers, part 3
C Headers, part 3
(OP)
Making progress.
Next error involves macros,
and reviewing Kernigen and Ritchie
4.11.2 Macro Substitution
A definition has the form
#define name replacement text
It calls for a macro substitution of the simplest kind-subsequent occurrences of
the token name will be replaced by the replacement text.
The actual error
Does it make sense to count both left and right brackets?
Suggestions?
Next error involves macros,
and reviewing Kernigen and Ritchie
4.11.2 Macro Substitution
A definition has the form
#define name replacement text
It calls for a macro substitution of the simplest kind-subsequent occurrences of
the token name will be replaced by the replacement text.
The actual error
CODE --> c
C:\gcc\bin\gcc.exe -c cxdrinit.c
In file included from rpc/types.h:97:0,
from rpc/rpc.h:38,
from cxdrinit.c:2:
rpc/in.h:38:9: error: macro names must be identifiers
#define <a name="_NETINET_IN_H_" <="" a=""><b>_NETINET_IN_H_</b>
^ Does it make sense to count both left and right brackets?
Suggestions?





RE: C Headers, part 3
RE: C Headers, part 3
CODE
RE: C Headers, part 3
I'm using Windows7, GCC 5.2, MinGW command-line and make.
Searching for information, I read somewhere that MinGW no longer includes some essential variable types, so this project has changed from a compile link and run to a minor rewrite.
Do you know of a "windows ready" xdr library?
RE: C Headers, part 3
RE: C Headers, part 3
Thank you, tried that.
Just to be clear, I'm using Windows7, GCC-5.2, and a MinGW msys-1.0 command window.
I call success being able to download the source, execute ./configure, make, and make install, with no errors.
I have attempted this with:
fxdr_2.1c,
glibc-2.23,
portablexdr-4.91,
WinPortableXDR-4.9.1, and
sunrpc-4.0
The only package that works on my machine is sunrpc.
All the others go down a rabbit hole of macros and header errors.