I find this kind of strange but when I use the FD_SET macro in my program everything compiles fine but when I run the executable it crashes.
Any suggestions why this happens ?Code:SOCKET test; fd_set read_check; FD_SET(test, &read_check);
EDIT: I'm using the mingw c/c++ compilers and Code::Blocks.