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,3b009bb3a08ff095 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-03-16 18:56:06 PST Path: supernews.google.com!sn-xit-03!supernews.com!nntp.cs.ubc.ca!cyclone.rdc-detw.rr.com!news.mw.mediaone.net!newsxfer.eecs.umich.edu!enews.sgi.com!newshub2.rdc1.sfba.home.com!news.home.com!news1.sttls1.wa.home.com.POSTED!not-for-mail From: "DuckE" Newsgroups: comp.lang.ada References: Subject: Re: file list in a directory X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Message-ID: <9iAs6.580631$U46.17301137@news1.sttls1.wa.home.com> Date: Sat, 17 Mar 2001 02:50:45 GMT NNTP-Posting-Host: 24.6.221.63 X-Complaints-To: abuse@home.net X-Trace: news1.sttls1.wa.home.com 984797445 24.6.221.63 (Fri, 16 Mar 2001 18:50:45 PST) NNTP-Posting-Date: Fri, 16 Mar 2001 18:50:45 PST Organization: Excite@Home - The Leader in Broadband http://home.com/faster Xref: supernews.google.com comp.lang.ada:5790 Date: 2001-03-17T02:50:45+00:00 List-Id: "EtienneB" wrote in message news:mailman.984777550.11120.comp.lang.ada@ada.eu.org... > So, I tryed quickly to do it interfacing with but the linker did't agree > > ./test_rep.o(.text+0x3e):test_rep.adb: undefined reference to `_opendir' > ./test_rep.o(.text+0x4f):test_rep.adb: undefined reference to `readDir' > ./test_rep.o(.text+0x60):test_rep.adb: undefined reference to `closeDir' > gnatmake: *** link failed. > Since you're using GNAT, you might want to have a look at the GNAT specific package: GNAT.Directory_Operations On my W2K installation it is located in the file named: g-dirope.ads. SteveD > look at the imports > function openDir (szPath : chars_ptr) return dir_access; > pragma import (C, openDir, "_opendir"); > function closeDir (Dir : dir_access) return integer; > pragma import (C, closeDir, "closeDir"); > function readDir (Dir : dir_access) return dirent_access; > pragma import (C, readDir, "readDir"); > > Thanks > Etienne Baudin > >