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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,1f0fee9a90c6f8dd X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!f6g2000cwb.googlegroups.com!not-for-mail From: "Anh Vo" Newsgroups: comp.lang.ada Subject: Re: Problem with GNAT GPL 2006 win32ada bindings Date: 18 Jun 2006 14:22:30 -0700 Organization: http://groups.google.com Message-ID: <1150665750.905137.327060@f6g2000cwb.googlegroups.com> References: <449524dd$0$10456$afc38c87@news.optusnet.com.au> NNTP-Posting-Host: 71.146.104.132 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1150665756 9986 127.0.0.1 (18 Jun 2006 21:22:36 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 18 Jun 2006 21:22:36 +0000 (UTC) In-Reply-To: <449524dd$0$10456$afc38c87@news.optusnet.com.au> User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: f6g2000cwb.googlegroups.com; posting-host=71.146.104.132; posting-account=JVr7Xg0AAAAI3MbuARxMmvWLmA7qdJMx Xref: g2news2.google.com comp.lang.ada:4817 Date: 2006-06-18T14:22:30-07:00 List-Id: Ross Higson wrote: > Hi, > > I'm having a problem building the example programs included with GNAT > GPL 2006 win32ada bindings. I have installed both the compiler and the > win32ada bindings (to H:\GNAT\GPL_2006), and they appear to install > correctly. But when I attempt to build any of the example programs I get > link errors. For example, using the command: > > gnatmake -Pconnect.gpr > > I get the following output: > > gcc -c -O2 -I- -gnatA H:\GNAT\GPL_2006\examples\connect\connect.adb > gcc -c -O2 -I- -gnatA H:\GNAT\GPL_2006\examples\connect\connectpkg.adb > gnatbind -I- -x h:\gnat\gpl_2006\examples\connect\connect.ali > gnatlink h:\gnat\gpl_2006\examples\connect\connect.ali -o > h:\gnat\gpl_2006\examples\connect\connect.exe > H:\GNAT\GPL_2006\bin\..\libexec\gcc\pentium-mingw32msv\3.4.6\ld.exe: > cannot find -lwin32ada > gnatlink: cannot call H:\GNAT\GPL_2006\bin\gcc.exe > gnatmake: *** link failed. > > The win32ada library that the linker seems to be looking for does not > exist in either the GPL 2006 distribution or the win32ada distribution > even though it is explicitly referenced by 'win32.ads'. If I copy this > library from my GNAT 3.15p installation the program compiles and links > correctly. Has Adacore accidentally left this file out of the win32ada > bindings, or am I doing something wrong? It happened to me, too. I plan to send a bug report tomorrow. In the mean time, my workaround is to archive the all the object files of win32ada binding to create libwin32ada.a. Then, I place it at the same location of other librariies. AV