Consider the following code:
This will run fine in a Cygwim terminal window but when I try to run it in the cmd.exe window (or simply double click the icon) it returns:
CLIENT *clnt = NULL;
clnt = clnt_create("192.168.1.2",300456,1,"tcp");
clnt_pcreateerror("Client was not created!\n");
: RPC: Unknown protocol
edit: How can I read the results from the 'return' functions (1,0) in windows. Eventually I would like to use this as a library function in non Cygwin generated code.
I apologize for asking this question a second time but I have a better understanding of the situation now.