rpc/rpc.h文件在Windows上找不到
我正在Windows上的Sun Microsystems开发的SunRPC库。
我已经在Windows 10上下载了GNUWIN32 SUNRPC4.0。
我正在运行rpcgen -a -c -y“ c:/mingw/bin” add.x命令,并且我可以获取.c,.h和makefile文件。
现在,我正在使用make -f makefile编译。我会收到以下错误“致命错误:RPC/RPC.H:没有此类文件或目录”
我已经从Cygwin工具安装了“ RPCSVC-Proto”软件包。我的rpc.h文件位置是c:/cygwin64/usr/include/rpc/rpc.h。我已经将此路径包括在环境变量中。我仍然发现该文件找不到错误。
我已经对我的Makefile进行了以下更改,
CC = gcc
CFLAGS += -g -DRPC_SVC_FG
LDLIBS += -lnsl
RPCGENFLAGS =
有人可以帮助我吗?
提前致谢。
I am working on sunrpc library developed by Sun Microsystems on windows.
I have downloaded GnuWin32 sunrpc4.0 on windows 10.
I am running rpcgen -a -C -Y "C:/MinGW/bin" add.x command and I am able to get .c , .h and Makefile files.
Now I am compiling using make -f Makefile. I am getting following error "fatal error: rpc/rpc.h: No such file or directory"
I have installed "rpcsvc-proto" package from cygwin tool. My rpc.h file location is C:/cygwin64/usr/include/rpc/rpc.h. I have included this path into environmental variables. Still I am getting this file not found error.
I have made following changes to my Makefile
CC = gcc
CFLAGS += -g -DRPC_SVC_FG
LDLIBS += -lnsl
RPCGENFLAGS =
Can somebody help me on this?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
XDR有一个便携式实现,该实现带有
rpc/rpc.h
at http://people.redhat.com/~rjones/portablexdr/我能够与Mingw-w64一起进行一些调整,请参阅: https://github.com/github.com/winlibs_recipes/winlibs_recipes/blob/blob/blob/main/main/main/recipes/portableableablecl.winlib.winlib
There is a portable implementation of XDR which comes with
rpc/rpc.h
at http://people.redhat.com/~rjones/portablexdr/I was able to build it with MinGW-w64 with some tweaks, see: https://github.com/brechtsanders/winlibs_recipes/blob/main/recipes/portablexdr.winlib