* gnatmake vs gprbuild (win32, GPL 2014 and 2015)
@ 2016-05-28 9:02 gautier_niouzes
2016-06-14 14:29 ` gautier_niouzes
0 siblings, 1 reply; 2+ messages in thread
From: gautier_niouzes @ 2016-05-28 9:02 UTC (permalink / raw)
Hello,
On the same project file, I get a different behaviour at the link phase.
- gnatmake succeeds [1]
- gprbuild fails [2]
Since gprbuild is meant to replace gnatmake over time, I'd like to have a successful linking with gprbuild. Detailed error messages below.
So my question is: with which linker option can I fix that ?
The problem shows up on both GNAT GPL 2014 and 2015 versions.
TIA
_________________________
Gautier's Ada programming
http://gautiersblog.blogspot.com/search/label/Ada
NB: follow the above link for a valid e-mail address
______
[1]
gnatmake -d -PG:\g3d\demo\globe_3d_win32.gpr -XBuild_Mode=Debug g3dem_tb.ads
gnatbind -E -x G:\g3d\obj\gnatdebg\g3dem_tb.ali
gnatlink G:\g3d\obj\gnatdebg\g3dem_tb.ali -g -lopengl32 G:\g3d\demo\\../obj/libwin32/glee.o -lglu32 -lfreeglut -LG:\g3d\demo\\../obj/libwin32 -o G:\g3d\demo\g3dem_tb.exe
[2016-05-28 10:46:10] process terminated successfully, elapsed time: 10.98s
______
[2]
gprbuild -d -PG:\g3d\demo\globe_3d_win32.gpr -XBuild_Mode=Debug g3dem_tb.ads
gcc g3dem_tb.o -g -lopengl32 G:\g3d\demo\\../obj/libwin32/glee.o -lglu32 -lfreeglut -LG:\g3d\demo\\../obj/libwin32 -o g3dem_tb.exe
G:\g3d\demo\\../obj/libwin32/glee.o:glee.c:(.text+0xd): undefined reference to `wglGetProcAddress@4'
G:\g3d\demo\\../obj/libwin32/glee.o:glee.c:(.text+0x1c34d): undefined reference to `wglGetProcAddress@4'
G:\g3d\demo\\../obj/libwin32/glee.o:glee.c:(.text+0x1c369): undefined reference to `wglGetCurrentDC@0'
h:/gnat/2014/bin/../libexec/gcc/i686-pc-mingw32/4.7.4/ld.exe: G:\g3d\demo\\../obj/libwin32/glee.o: bad reloc address 0x2db8 in section `.data'
h:/gnat/2014/bin/../libexec/gcc/i686-pc-mingw32/4.7.4/ld.exe: final link failed: Invalid operation
collect2.exe: error: ld returned 1 exit status
gprbuild: link of g3dem_tb.ads failed
[2016-05-28 10:47:19] process exited with status 4, 100% (59/59), elapsed time: 10.88s
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-06-14 14:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-28 9:02 gnatmake vs gprbuild (win32, GPL 2014 and 2015) gautier_niouzes
2016-06-14 14:29 ` gautier_niouzes
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox