Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

RPC define types

Status
Not open for further replies.

rih5342

Marine/Ocean
May 8, 2007
40

I'm using W7-64 and cygwin gcc 6.3.1

Any hints for dealing with #define <a name=""

C:
C:\cygwin64\usr\local\bin\gcc.exe -Wextra -Wall -Wfloat-equal -Wundef -Wshadow -Wpointer-arith -Wcast-align -Wstrict-prototypes -Wstrict-overflow=5 -Wwrite-strings -Waggregate-return -Wcast-qual -Wswitch-default -Wswitch-enum -Wconversion -Wunreachable-code   -c -o cxdrint.o cxdrint.c
In file included from rpc/types.h:97:0,
                 from rpc/rpc.h:38,
                 from cxdrint.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>
         ^
rpc/in.h:48:9: error: macro names must be identifiers
 #define </a><a name="IPPROTO_IP"   <="" a=""><b>IPPROTO_IP</b>    0  /* dummy for IP              */

Thank you.

 
Replies continue below

Recommended for you

It is difficult to tell the root cause and give a solution without seeing the source code. However, based on the output error message, the "#define" macro has the syntax issue. In the c programming, the #define should go like "#define _NETINET_IN_H_". Are you sure the "in.h" should be compiled?

 
I'm not sure about compiling in.h.

The syntax <="" a=""><b>IPPROTO_IP</b> is challenging.

I have several versions of the library, most have includes that turn into rabbit holes.

I just need the xdr rpc library to link with a SW project. It's just easier to include it rather than remove it.

Thank you.
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor