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,XPRIO autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,714a40eb8c53061d X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!news4.google.com!feeder.news-service.com!xlned.com!feeder7.xlned.com!hitnews.eu!feed.xsnews.nl!border-3.ams.xsnews.nl!upload-1.xsnews.nl!10.10.60.9.MISMATCH!frontend-F10-09.ams.news.kpn.nl From: "ldries46" Newsgroups: comp.lang.ada Subject: Re: ADA and Open GL Date: Wed, 10 Aug 2011 16:24:39 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Newsreader: Microsoft Windows Live Mail 15.4.3508.1109 X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3508.1109 Message-ID: <4e4294a5$0$2593$703f8584@news.kpn.nl> Organization: KPN.com NNTP-Posting-Host: 77.168.179.107 X-Trace: 1312986277 news.kpn.nl 2593 77.168.179.107@kpn/77.168.179.107:59264 Xref: g2news2.google.com comp.lang.ada:21483 Date: 2011-08-10T16:24:39+02:00 List-Id: If this message is send twice, please forgive but to me it seems as if the message was not send I did what you suggested. and with only one pragma for a function pointer it worked. But I got now a number of message of this kind: E:/ada/project/Blastula/visualize.adb:289: undefined reference to `glutSwapBuffers' I got the same messages for the glSomething routines and adding: "-LC:\windows\system32" to the linker options solved these These routines are in openGL32.dll The errors in the other routines were not solved although these are positioned in Glu32.dll and Glut32.dll both also in the C:\Windows\System32 directory "Simon Wright" schreef in bericht news:m2liv134lb.fsf@pushface.org... "ldries46" writes: > My program seems correct now, but I get the following error message: > > opengl-glu.ads:373:31: warning: subprogram pointer > "gluNurbsCallback.CallBackFunc" should have foreign convention > opengl-glu.ads:373:31: warning: add Convention pragma to declaration > of "GLU.GLUFUNCPTR" at line 231 > > This is found in a standard unit nl. the adabindings to Open GL, GLU > and GLUT > > Can I disregard this warning or should I do something to avoid it. I > don't thoink I should be altering my copy of the ADA bindings so > where should I do something. > In my program I don't call this routine directly soit is a result of a > call from another routine within the ADA bindings. Perhaps you're compiling with a different set of compiler options than those used by the developer of the bindings? Very often, GNAT will in fact translate iffy code like this correctly (the compiler backend understands C, of course). Better not to risk it, though, convention errors can be a real pain to debug. Those bindings aren't "standard" in the RM sense. Personally I'd make the change and send a patch to the bindings maintainer.