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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c72b93d85d765332 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-05-13 12:57:09 PST Path: archiver1.sj.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!212.74.64.35!colt.net!newspeer.clara.net!news.clara.net!news5-gui.server.ntli.net!ntli.net!news2-win.server.ntlworld.com.POSTED!not-for-mail From: "chris.danx" Newsgroups: comp.lang.ada References: Subject: Re: Ada and Hardware X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Message-ID: Date: Sun, 13 May 2001 20:52:40 +0100 NNTP-Posting-Host: 213.104.131.165 X-Complaints-To: abuse@ntlworld.com X-Trace: news2-win.server.ntlworld.com 989783520 213.104.131.165 (Sun, 13 May 2001 20:52:00 BST) NNTP-Posting-Date: Sun, 13 May 2001 20:52:00 BST Organization: ntlworld News Service Xref: archiver1.sj.google.com comp.lang.ada:7462 Date: 2001-05-13T20:52:40+01:00 List-Id: Hi, I've got a binding to the biosdisk function but i do not know how to tell GNAT which file it's in. I tried -I but that's wrong. I looked in the users guide and reference manual for GNAT but cannot find it. I'm linking to the libc.a file a part of the djgpp installation. (this is GNAT non-dos i'm using i had major problems trying to get the dos one to compile...) I hope linking non-dos and dos is possible (win98 i'm on). This is my binding with interfaces.c; with interfaces.c.strings; package biosf is package C renames interfaces.c; function biosdisk ( cmd : in c.int; drive : in c.int; head : in c.int; track : in c.int; sector : in c.int; nsects : in c.int; buffer : in c.strings.chars_ptr) return c.int; pragma import (C, biosdisk, "biosdisk"); pragma linker_options ("d:\djgpp\lib\libc.a"); -- the above line is wrong... -- i don't know what the correct option is! end biosf; Thanks, Chris Campbell