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,XPRIO autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,353c154fa8d4051,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Daniel W" Newsgroups: comp.lang.ada Subject: Problem with GNAT linking X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 NNTP-Posting-Host: sth-2-nat-212.116.78.13-lottingelund-cpe.globecom.net X-Original-NNTP-Posting-Host: sth-2-nat-212.116.78.13-lottingelund-cpe.globecom.net Message-ID: <41a7735d@news.wineasy.se> Date: 26 Nov 2004 19:18:05 +0100 X-Trace: wineasy!newsfeed.wineasy.se!news.wineasy.se!news.songnetworks.se 1101493085 212.116.78.13 (26 Nov 2004 19:18:05 +0100) X-Complaints-To: abuse@songnetworks.se Path: g2news1.google.com!news4.google.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeed1.swip.net!swipnet!wineasy!newsfeed.wineasy.se!news.wineasy.se!news.songnetworks.se!not-for-mail Xref: g2news1.google.com comp.lang.ada:6516 Date: 2004-11-26T19:18:05+01:00 List-Id: Greetings, after having spent years and years off Ada, I just the other week figured I'd try out some Gnat stuff. Fired up AdaGide and all examples worked fine. After putting it away for a week, I found that it stopped working. A cannot recall changing anything in the configuration after it worked the last time. Below is the verbose output from gnatmake. I can understand why the linker is objecting. But wherefrom does gnatmake take these parameters? Could someone please 1) see the obvious problem or 2) explain exactly how gnatmake (and gnatlink) generates its "ld-command" Daniel Wengelin, a.k.a Eternally grateful (running gnat 3.15p on WinXP, with ADA_OBJECTS_PATH="c:\GNAT\Bindings\Win32Ada;C:\GNAT\lib\win32;C:\Program Files\XMLBooster\ada") C:\GNAT\Examples>gnatmake text_io_example.adb -largs --verbose gnatbind -x text_io_example.ali gnatlink --verbose text_io_example.ali Reading specs from C:\GNAT\lib\gcc-lib\pentium-mingw32msv\2.8.1\specs gcc version 2.8.1 ld -o text_io_example.exe C:\GNAT\lib\gcc-lib\pentium-mingw32msv\2.8.1\crt2.o -L./ -Lc:\GNAT\Bindings\Win32Ada\ -LC:\GNAT\lib\win32\ -LC:\Program Files\XMLBooster\ada" -LC:\GNAT\lib\gcc-lib\pentiummingw32msv\2.8.1\adalib\ C:\GNAT\lib\gcc-lib\pentium-mingw32msv\2.8.1\adalib\libgnat.a -Wl,--stack=0x2000000 -LC:\GNAT\lib\gcc-lib\pentium-mingw32msv\2.8.1 -LC:\GNAT\lib -LC:\GNAT\lib b~text_io_example.o ./text_io_example.o -lmingw32 -lgcc -lmoldname -lmsvcrt -lkernel32 -ladvapi32 -lshell32 -lmingw32 -lgcc -lmoldname -lmsvcrt ld: unrecognized option 'C:\GNAT\lib\gcc-lib\pentium-mingw32msv\2.8.1\adalib\libgnat.a' ld: use the --help option for usage information gnatlink: cannot call C:\GNAT\bin\gcc.exe gnatmake: *** link failed. C:\GNAT\Examples>