From: "EtienneB" <etienne.baudin@wanadoo.fr>
To: <comp.lang.ada@ada.eu.org>
Subject: Re: file list in a directory
Date: Fri, 16 Mar 2001 22:19:54 +0100
Date: 2001-03-16T22:19:54+01:00 [thread overview]
Message-ID: <mailman.984777550.11120.comp.lang.ada@ada.eu.org> (raw)
In-Reply-To: Xvts6.41928$zV3.3132085@news1.frmt1.sfba.home.com
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.
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
next prev parent reply other threads:[~2001-03-16 21:19 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 [this message]
2001-03-17 0:53 ` David C. Hoos, Sr.
2001-03-17 2:50 ` DuckE
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