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.4 required=5.0 tests=BAYES_00,SUBJ_ALL_CAPS autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1420c488cb1d9834,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1995-02-27 04:08:15 PST Path: nntp.gmd.de!news.rwth-aachen.de!news.rhrz.uni-bonn.de!RRZ.Uni-Koeln.DE!uni-duisburg.de!zib-berlin.de!news.mathworks.com!news2.near.net!news.delphi.com!BIX.com!mcriley From: mcriley@BIX.com (mcriley on BIX) Newsgroups: comp.lang.ada Subject: GNAT & POSIX Date: 27 Feb 95 00:21:23 GMT Organization: Delphi Internet Services Corporation Message-ID: NNTP-Posting-Host: bix.com Summary: GNAT won't link, wants POSIX Keywords: GNAT POSIX Date: 1995-02-27T00:21:23+00:00 List-Id: I've got version 2.03 of GNAT for DOS and I can't get GNATBL to link my test program. To test out linking C code with GNAT, I wrote a package spec that declares the C routines, then used pragma Import to bring them in. Then I have a main program that calls these routines. When using GNATBL to link I get an abundance of 'Undefined references', _not_ referring to the C routines I'm linking, those are resoved quite nicely, but of a whole slew of POSIX threads functions. These are all coming out of Interfaces.C.POSIX_. In no way, shape, or form, am I knowingly interacting with POSIX, and I'd rather keep it that way if possible! It seems that these functions are brought in as a side-effect of including a pragma Import(C, ...). I've been wrestling with this for several days and any assistance would be most welcome. Thanks. Marc A. Criley