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 X-Google-Thread: 103376,260d6368507c2948 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-16 22:45:34 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!193.213.112.26!newsfeed1.ulv.nextra.no!nextra.com!uio.no!nntp.uib.no!not-for-mail From: Gisle =?iso-8859-1?Q?S=E6lensminde?= Newsgroups: comp.lang.ada Subject: Re: List of C function usable in Ada Date: 17 Oct 2002 05:45:34 GMT Organization: Institutt for Informatikk, UiB Message-ID: References: NNTP-Posting-Host: apal.ii.uib.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: toralf.uib.no 1034833534 71301 129.177.16.7 (17 Oct 2002 05:45:34 GMT) X-Complaints-To: abuse@uib.no NNTP-Posting-Date: 17 Oct 2002 05:45:34 GMT User-Agent: slrn/0.9.7.2 (SunOS) Xref: archiver1.google.com comp.lang.ada:29857 Date: 2002-10-17T05:45:34+00:00 List-Id: Sim Con wrote: >> Nowhere, I presume - or do you think each and every C program that has been >> written in this world exports its functions to a central documentation place. >> >> Seriously, which C functions do you mean? > > Well, i study pragma import just today ;P and i don't understand well > how and where my compiler (adagide and gnat) takes the C function that i > use (for example strlen, rename etc.). > Can you explain me how can i insert other c functions and where the > compiler has the standard one? Thanx again, sorry for my strange > questions ;P I think strlen and rename are part of libc, the standard C library. On unix and unix-like systems the libc is usually linked to every executable. GCC (which GNAT is based) was originally implemented for unix-like systems, and the ports to non-unix systems contains a compatibility layer, since the gcc runtime need it. For GNAT on Windows the mingw library are used. There is also cygwin, that unlike mingw tries to be a complete compatibility layer, and not just the minimum needed to support gnu tools. For this reason, strlen etc will always be there. For more interesting C functions, you must link with the library where they are located when building the Ada executable. -- Gisle S�lensminde ( gisle@ii.uib.no ) With sufficient thrust, pigs fly just fine. However, this is not necessarily a good idea. It is hard to be sure where they are going to land, and it could be dangerous sitting under them as they fly overhead. (from RFC 1925)