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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f1c15b8895105c4d,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-04-08 01:04:17 PST Path: archiver1.google.com!news1.google.com!news.glorb.com!news.cs.univ-paris8.fr!proxad.net!feeder2-1.proxad.net!news3-e.free.fr!not-for-mail Newsgroups: comp.lang.ada From: Alex Subject: Importing some special C functions Organization: Dom'Z Reply-To: jrz_dont_want@spam.free.fr JRP: et oui roro Message-ID: User-Agent: slrn/0.9.8.0 (Linux) Date: Thu, 8 Apr 2004 07:22:04 -0000 NNTP-Posting-Date: 08 Apr 2004 10:04:17 MEST NNTP-Posting-Host: 81.56.80.104 X-Trace: 1081411457 news3-e.free.fr 22885 81.56.80.104:54117 X-Complaints-To: abuse@proxad.net Xref: archiver1.google.com comp.lang.ada:6836 Date: 2004-04-08T10:04:17+02:00 List-Id: Hello, I'm under windows, and I'm using GNAT 3.15p. I'd like to access serial links, but without using Win32 Bindings. so, I have to import C functions like read, write, open, and select. For most of them, I did not encounter problem. I suppose the linker uses the C functions it has in the gnat C library. But it fails for the select function : the linker can't find it. So, I suppose there is no select function in the C library of Gnat. That's why I'm asking help about how to do that ? I mean, how making Gnat importing C functions ? I've got Cygwin installed, so I guess I could use its C library. But no idea how to do it. If someone could help, it would be great. Thanks in advance, -- Alex