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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,bd4b243fbf9e0b22,start X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.224.205.65 with SMTP id fp1mr3594003qab.4.1355957553937; Wed, 19 Dec 2012 14:52:33 -0800 (PST) Received: by 10.49.24.164 with SMTP id v4mr1184019qef.6.1355957553920; Wed, 19 Dec 2012 14:52:33 -0800 (PST) Path: k2ni1377qap.0!nntp.google.com!ee4no706864qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 19 Dec 2012 14:52:33 -0800 (PST) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=69.153.58.182; posting-account=lJ3JNwoAAAAQfH3VV9vttJLkThaxtTfC NNTP-Posting-Host: 69.153.58.182 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: GPR linker-package troubles From: Shark8 Injection-Date: Wed, 19 Dec 2012 22:52:33 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2012-12-19T14:52:33-08:00 List-Id: When I run the "Build All" command in GPS I get the following: gnatlink C:\Programming\Projects\TAO_GL\obj\test.ali -lopengl32 -lglut32 --= enable-stdcall-fixup -o C:\Programming\Projects\TAO_GL\test.exe Warning: resolving _glClearColor@16 by linking to _glClearColor Use --enable-stdcall-fixup to disable these warnings Use --disable-stdcall-fixup to disable these fixups Warning: resolving _glClear@4 by linking to _glClear As you can see, the "enable-stdcall-fixup" option is included, yet the link= er is behaving as if it were not. When I run gnatlink from the command-line= and put the flag at the end things work fins, so I'm assuming the problem = is that it is being treated as a switch rather than linker-option. (see bel= ow) Currently the GPR's linker is as follows: package Linker is for Default_Switches ("ada") use ("-lopengl32", "-lglut32"); for Linker_Options use ( "--enable-stdcall-fixup"); end Linker; I have also tried with the fixup-flag in the DEFAULT_SWITCHES list, no effe= ct. gnatlink --help Usage: gnatlink switches mainprog.ali [non-Ada-objects] [linker-options]