Q:
I am using Linux-Mandrake 8.1. Using the Advanced Editor to edit my
programs and GCC in the BASH shell to compile them.
I am trying to pass a message structure into the send() and recv()
functions.
...
A:
I know what the error message means, but I do not know why you get it. You
did not supply the whole code, only fragments, and as I tried to reproduce
the program:
#include <stdio.h>
struct msgstruct {
unsigned short msgType;
unsigned from;
unsigned to;
char msg[250];
} msgStruct;
main(){
int socket;
send(socket,&msgStruct,sizeof(msgStruct),0);
}
was compiled fine (although it certainly does nothing).
Regards,
Peter
Q:
Its ok, Ive fixed it now.
Thnaks for replying.
A:
YRW
Peter
[ back to toc ]