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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,41531c84d15aab14 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-03-24 07:56:38 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Error linking gnatcom: cannot find -lole32 Date: 24 Mar 2003 10:47:05 -0500 Organization: NASA Goddard Space Flight Center (skates.gsfc.nasa.gov) Message-ID: References: <87f5a614.0303211445.1d087582@posting.google.com> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1048521679 16702 128.183.235.92 (24 Mar 2003 16:01:19 GMT) X-Complaints-To: usenet@news.gsfc.nasa.gov NNTP-Posting-Date: 24 Mar 2003 16:01:19 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:35649 Date: 2003-03-24T16:01:19+00:00 List-Id: svaa@ciberpiula.net (svaa) writes: > I have the same problem with W2k. I have those versions and gnat > 3.15p. > > The problem is in these lines in reggnatcom.ads > > pragma Linker_Options ("-lole32"); > pragma Linker_Options ("-loleaut32"); > > it can't find the lib ole32.dll, but it exists and is in > c:\windows\sytem32\ole32.dll. I don't know with it doesn't find it. The linker option "-lole32" tells the linker to look for "libole32.a", not "libole32.dll". "libole32.dll" is needed at run-time, but "libole32.a" is needed at link time. > I've supposed that it looks for libole32.o or libole32.a or it has > something to do with directories. libole32.a is from the "extra" Windows GNAT installation file "gnatwin-3.15p.exe"; make sure you install that. It puts "libole32.a" in GNAT/lib/win32; gnatlink should look there automatically. -- -- Stephe