Código C:
Ver original
#include <stdio.h> #include <stdlib.h> #include <winsock.h> int main(int argc, char *argv[]) { int sock; sock = socket ( AF_INET, SOCK_STREAM, 0 ); return 0; }
el error de compilacion es el siguiente:
[Warning] cannot find entry symbol _mainCRTStartup; defaulting to 00401000
[Linker error] undefined reference to `_alloca'
[Linker error] undefined reference to `__main'
[Linker error] undefined reference to `system'
ayuda porfavor gracias