From: Shark8 <onewingedshark@gmail.com>
Subject: GPR linker-package troubles
Date: Wed, 19 Dec 2012 14:52:33 -0800 (PST)
Date: 2012-12-19T14:52:33-08:00 [thread overview]
Message-ID: <c3d13f11-cafd-4fd0-be2d-a1ef3beb4f83@googlegroups.com> (raw)
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 linker 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 below)
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 effect.
gnatlink --help
Usage: gnatlink switches mainprog.ali [non-Ada-objects] [linker-options]
reply other threads:[~2012-12-19 22:52 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox