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 X-Google-Attributes: gid103376,public From: robert_dewar@my-dejanews.com Subject: Re: GNAT sockets Date: 1998/12/31 Message-ID: <76etdo$u1c$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 427327539 References: <368a76d8.0@dial-in.encomix.es> X-Http-Proxy: 1.0 x2.dejanews.com:80 (Squid/1.1.22) for client 166.72.81.84 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Thu Dec 31 04:09:29 1998 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1998-12-31T00:00:00+00:00 List-Id: In article <368a76d8.0@dial-in.encomix.es>, "Daniel Fanjul" wrote: > 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. The above program was a C program! Not an Ada 95 program. GNAT is an Ada 95 compiler, so most certainly you did NOT compile this using GNAT. The GNAT distribution includes the GNU C front end for gcc, which provides a standard C environment, but it has nothing to do with Ada, so your question is better addressed to a different news group. -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own