comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <Stephen.A.Leake@nasa.gov>
Subject: Re: Error linking gnatcom: cannot find -lole32
Date: 24 Mar 2003 10:47:05 -0500
Date: 2003-03-24T16:01:19+00:00	[thread overview]
Message-ID: <uznnkzs06.fsf@nasa.gov> (raw)
In-Reply-To: 87f5a614.0303211445.1d087582@posting.google.com

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



  reply	other threads:[~2003-03-24 15:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-20 21:10 Error linking gnatcom: cannot find -lole32 Vincent Smeets
2003-03-21 16:05 ` David Botton
2003-03-21 22:45   ` svaa
2003-03-24 15:47     ` Stephen Leake [this message]
2003-03-21 21:28 ` Vincent Smeets
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox