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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,db0fafd698bfd930 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Sat, 04 Jun 2005 08:17:29 -0500 Date: Sat, 04 Jun 2005 09:17:49 -0400 From: Jeff C User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: -lluser32 missing References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 24.147.74.171 X-Trace: sv3-U65jylxBMrORuYU0VHiBX3Se6b76ItFQn61GN525vDLW5dglKnaQdIp1+noYADcVQ9w47oRXtWfUwLY!lk20h5MHDDEsGOSS4q484qsmFGO7X6nWaVcjKKLAweacimd9cPw/g59dE3/mtQ== X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.31 Xref: g2news1.google.com comp.lang.ada:11237 Date: 2005-06-04T09:17:49-04:00 List-Id: Christoph Karl Walter Grein wrote: > I've installed Gnat 3.4.2 on Windows (98|XP). When I try to link a hello world program, I get the following. > > What am I missing? > Actually, you installed GCC 3.4.2 that includes GNAT Ada support. GNAT version numbers are distinct from gcc versions and unless you are using a compiler version derived directly from an AdaCore release, the version number not in the same version number stream. Seems like a trivial complaint (that I make here from time to time) but seeing that there is now a GCC 4.0 and there was a (not widely distributed) GNAT 4.0 and they are completely different beasts (GNAT 4.0 was based on GCC 2.8 I think) this can cause confusion. > >>gnatmake hello > > gcc -c hello.adb > gnatbind -x hello.ali > gnatlink hello.ali > C:\Compiler\GCC\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: cannot find -luser32 > collect2: ld returned 1 exit status > gnatlink: cannot call C:\Compiler\GCC\bin\gcc.exe > gnatmake: *** link failed. Seems like some sort of installation problem. This is an mingw gcc release. Have you tried this from an Msys shell. Mingw installs generally do not do things like setup all of the path/environment variables for using the tools from a cmd.exe shell. Try it first from an msys shell. Also might be worth asking this on the mingw mailing lists. Do you have a libuser32.a file somewhere in the tree where you install this stuff.. Perhaps you just downloaded and installed a portion of the required mingw items?