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: a07f3367d7,aa21646068c11fac X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,UTF8 Path: g2news2.google.com!news4.google.com!feeder.news-service.com!feeder.visyn.net!visyn.net!aioe.org!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: Installing MinGW and testing it out I have a problem. Date: Thu, 20 May 2010 20:44:56 +0200 Organization: Ada At Home Message-ID: References: <5d0323a2-3639-4e4f-88b0-a0c58b41761b@k31g2000vbu.googlegroups.com> NNTP-Posting-Host: QgHLs5XqnJEdNZrCkJ6IIg.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 User-Agent: Opera Mail/10.53 (Win32) Xref: g2news2.google.com comp.lang.ada:11812 Date: 2010-05-20T20:44:56+02:00 List-Id: Le Thu, 20 May 2010 20:23:16 +0200, Harry Tucker = a =C3=A9crit: > I've installed MinGW on a WIn 7 machine. I have GPL GNAT already > installed. But trying to compile a project which compiles ok under the= > GPS I get this error from the command line: d:/mingw/bin/../lib/gcc/ > mingw32/4.5.0/../../../../mingw32/bin/ld.exe: cannot find -lgnarl-4.5 > > I looked at the GPL installation, it's copy of gnarl-2009 is in the > bin directory as is the MinGW copy of gnarl-4.5.0 is in the MinGW\bin > directory. > > My end goal is to get MSYS running so I can compile and use XMLAda. Hello, This may not give all the answers you could expect, however, here are so= me = hints : GNAT+GPS on Windows is already based on MinGW, so with a GNAT+GP= S = installed and a MinGW installed, you have two different MinGW installed.= I have both two, and mostly use the =E2=80=9Cpure=E2=80=9D MinGW and les= s oftenly = GNAT+GPS. To avoid troubles, as both are in the PATH, when I know I will= = use one and not the other, I rename the directory containing the one I = will not used (ex. =E2=80=9CGNAT=E2=80=9D -> =E2=80=9CGNAT disabled=E2=80= =9D, or =E2=80=9CMinGW=E2=80=9D -> =E2=80=9CMinGW = disabled=E2=80=9D). This solve some troubles. Then, MinGW is based on GCC, and GCC on Window may *or may not* use the = = Windows registry for its configuration, depending on one dedicated build= = option. As much as you can, or if you are not afraid to build your own i= f = needed, try to use a MinGW with a GCC which does not make use of the = registry, in order to avoid conflicts. I use MSys too, and the tip of renaming the directory containing the = compiler which is not to be used, works nice here. I can't ensure this = will work for you too, however, can you try and tell about the result ? -- = There is even better than a pragma Assert: a SPARK --# check.