comp.lang.ada
 help / color / mirror / Atom feed
From: "DuckE" <nospam_steved94@home.com>
Subject: Re: file list in a directory
Date: Sat, 17 Mar 2001 02:50:45 GMT
Date: 2001-03-17T02:50:45+00:00	[thread overview]
Message-ID: <9iAs6.580631$U46.17301137@news1.sttls1.wa.home.com> (raw)
In-Reply-To: mailman.984777550.11120.comp.lang.ada@ada.eu.org


"EtienneB" <etienne.baudin@wanadoo.fr> 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
>
>





  parent reply	other threads:[~2001-03-17  2:50 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-16 18:19 file list in a directory EtienneB
2001-03-16 18:31 ` Pascal Obry
2001-03-16 20:12   ` Robert A Duff
2001-03-17 10:09     ` Pascal Obry
2001-03-17 17:45     ` Nick Roberts
2001-03-17 18:08       ` Randy Brukardt
2001-03-17 19:57       ` Georg Bauhaus
2001-03-19 10:46       ` Jean-Pierre Rosen
2001-04-08  3:18         ` srini
2001-04-09  9:34           ` Jean-Pierre Rosen
2001-03-16 19:07 ` tmoran
2001-03-16 21:19   ` EtienneB
2001-03-17  0:53     ` David C. Hoos, Sr.
2001-03-17  2:50     ` DuckE [this message]
2001-03-17 12:30       ` Staffan Dittmer
2001-03-17 10:10     ` Pascal Obry
2001-03-16 21:19 ` EtienneB
2001-03-19  9:23 ` Martin Dowie
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox