So, you compiled your RPC client and it runs great in the Cygwin console. You use cygcheck to get the required dll’s and move it else where, so you can run it outside the Cygwin console.
If you’re using TI-RPC, you missed a file: /etc/netconfig
The TI-RPC library uses the NETPATH environment variable or this hard coded value to look up the protocols this machine supports.
This file is, literally, only used by TI-RPC on most systems. What purpose does it serve? If you’re just using TCP or UDP, absolutely none. It simply redefines standard socket constants, stuff that every other socket based server/client in existence does just fine, but you still need it. TI-RPC is based off of SUN RPC, which was made in the long-long ago, back when things besides tcp and udp, ipv4 and ipv6, weren’t universally used. Some examples of supported protocol families include: appletalk, nit, decnet, ccitt, datakit, chaos, pup. I don’t even.
Scrap it all like I did and use oncrpc-windows.