comp.lang.ada
 help / color / mirror / Atom feed
* GPR linker-package troubles
@ 2012-12-19 22:52 Shark8
  0 siblings, 0 replies; only message in thread
From: Shark8 @ 2012-12-19 22:52 UTC (permalink / 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]



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-12-19 22:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-19 22:52 GPR linker-package troubles Shark8

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox