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-Thread: 103376,344a642637dc2cf9 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit From: Brian May Newsgroups: comp.lang.ada Subject: Re: Linking confusion References: Date: Mon, 06 Sep 2004 10:12:47 +1000 Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:CG+zVC9B/Hl9eCoMcnggooRvEfA= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: dsl-202-173-153-89.vic.westnet.com.au X-Trace: news.melbourne.pipenetworks.com 1094429567 202.173.153.89 (6 Sep 2004 10:12:47 +1000) X-Complaints-To: abuse@pipenetworks.com X-Abuse-Info: Please forward all headers to enable your complaint to be properly processed. Path: g2news1.google.com!news2.google.com!news.maxwell.syr.edu!news.mel.connect.com.au!news.alphalink.com.au!news.melbourne.pipenetworks.com!not-for-mail Xref: g2news1.google.com comp.lang.ada:3348 Date: 2004-09-06T10:12:47+10:00 List-Id: >>>>> "Andrew" == Andrew Carroll writes: Andrew> warning: mktemp() possibly used unsafely; consider using mkstemp() Andrew> ./adagl.o: In function `adagl__glgetstring': Andrew> ./adagl.o(.text+0xb): undefined reference to `glGetString' Andrew> ./adagl.o(.text+0x1a): undefined reference to `glGetString' Andrew> gnatlink: cannot call /usr/local/bin/adagcc Andrew> gnatmake: *** link failed. I have to wonder why the adagl__glgetstring function (which presumably means the glGetString function in the adagl function) is trying to reference a glGetString function (which looks like it could be a imported C function, but there is no evidence of that in the source file). Are you sure that the ./adagl.o file corresponds with the source file excerpt you showed? Anyway, if I didn't know better, I would suggest that your ADA GL library binds to the C GL library, but you haven't linked in the GL C library (libGL on Linux). -- Brian May