From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,3858a89a714886ac,start X-Google-Attributes: gid103376,public From: "Daniel Fanjul" Subject: GNAT sockets Date: 1998/12/29 Message-ID: <368a76d8.0@dial-in.encomix.es>#1/1 X-Deja-AN: 427194121 Organization: Telefonica Transmision de Datos X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Newsgroups: comp.lang.ada Date: 1998-12-29T00:00:00+00:00 List-Id: Hello, I wrote this code to be compiled with GNAT (for Windows 95): #include "windows.h" #include "windows32\sockets.h" int main () { SOCKET s; s = socket (AF_INET, SOCK_STREAM, 0); printf ("%d", s); return 0; } The output was -1. Can anybody help me? Thanks. Daniel.