From: gautier_niouzes@hotmail.com
Subject: gnatmake vs gprbuild (win32, GPL 2014 and 2015)
Date: Sat, 28 May 2016 02:02:50 -0700 (PDT)
Date: 2016-05-28T02:02:50-07:00 [thread overview]
Message-ID: <0d301d74-5ff1-4dcc-a4ca-972ef7064447@googlegroups.com> (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
next reply other threads:[~2016-05-28 9:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-28 9:02 gautier_niouzes [this message]
2016-06-14 14:29 ` gnatmake vs gprbuild (win32, GPL 2014 and 2015) gautier_niouzes
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox