![](/img/trans.png)
[英]VS2012 including win32 and local rpc.h header breaking build (and VS2010 works fine)
[英]rpc/rpc.h file not found on windows
我正在研究 Sun Microsystems 在 windows 上開發的 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”package。 我的 rpc.h 文件位置是 C:/cygwin64/usr/include/rpc/rpc.h。 我已將此路徑包含在環境變量中。 我仍然收到此文件未找到錯誤。
我對我的 Makefile 進行了以下更改
CC = gcc CFLAGS += -g -DRPC_SVC_FG LDLIBS += -lnsl RPCGENFLAGS =
有人可以幫我嗎?
提前致謝。
在http://people.redhat.com/~rjones/portablexdr/有一個可移植的 XDR 實現,隨rpc/rpc.h
rpc.h
我能夠通過一些調整使用 MinGW-w64 構建它,請參閱: https://github.com/brechtsanders/winlibs_recipes/blob/main/recipes/portablexdr.winlib
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.