rpc/rpc.h文件在Windows上找不到

发布于 2025-02-07 19:27:18 字数 505 浏览 1 评论 0原文

我正在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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

素年丶 2025-02-14 19:27:18

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文