comp.lang.ada
 help / color / mirror / Atom feed
* Error linking gnatcom: cannot find -lole32
@ 2003-03-20 21:10 Vincent Smeets
  2003-03-21 16:05 ` David Botton
  2003-03-21 21:28 ` Vincent Smeets
  0 siblings, 2 replies; 5+ messages in thread
From: Vincent Smeets @ 2003-03-20 21:10 UTC (permalink / raw)


Hallo,

I have installed GNAT 3.15p on my Windows98 system. Now I want to use GNATCOM and GWindows. At compiling GNATCOM, I got an error from the linker. It can't find the library ole32. What am I missing? Am I missing some required software or do I have to use an additional option for the linker?

Thanks,
Vincent


C:\Programme\gnatcom\bindings>make reggnatcom
gnatmake -gnatg reggnatcom
gnatbind -x reggnatcom.ali
gnatlink reggnatcom.ali
ld: cannot find -lole32
gnatlink: cannot call C:\PROGRA~1\GNAT\BIN\gcc.exe
gnatmake: *** link failed.
C:\PROGRA~1\GNAT\BIN\MAKE.EXE: *** [reggnatcom] Error 4

C:\Programme\gnatcom\bindings>gnatlink -v reggnatcom.ali

GNATLINK 3.15p  (20020523) Copyright 1996-2002 Free Software Foundation, Inc.
gcc -c -gnatA -gnatWb -gnatiw -gnatws b~reggnatcom.adb
C:\PROGRA~1\GNAT\BIN\gcc.exe b~reggnatcom.o ./gnatcom.o ./gnatcom-types.o ./gnatcom-initialize.o ./gnatcom-bstr.o ./gnatcom-errors.o ./gnatcom-guid.o ./gnatcom-register.o ./reggnatcom.o -o reggnatcom.exe -L./ -LC:\PROGRA~1\GNAT\lib\gcc-lib\pentium-mingw32msv\2.8.1\adalib\ -lole32 -loleaut32 -luser32 C:\PROGRA~1\GNAT\lib\gcc-lib\pentium-mingw32msv\2.8.1\adalib\libgnat.a -Wl,--stack=0x2000000
ld: cannot find -lole32
GNATLINK: cannot call C:\PROGRA~1\GNAT\BIN\gcc.exe





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Error linking gnatcom: cannot find -lole32
  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-21 21:28 ` Vincent Smeets
  1 sibling, 1 reply; 5+ messages in thread
From: David Botton @ 2003-03-21 16:05 UTC (permalink / raw)
  To: comp.lang.ada mail to news gateway

Are you using all the latest:

http://www.adapower.com/gnatcom/gnatcom-20020610.zip
http://www.adapower.com/gwindows/gwindows-1_1p.zip

David Botton


----- Original Message -----
From: "Vincent Smeets" <kein@spam.de>
Newsgroups: comp.lang.ada
To: <comp.lang.ada@ada.eu.org>
Sent: Thursday, March 20, 2003 4:10 PM
Subject: Error linking gnatcom: cannot find -lole32


Hallo,

I have installed GNAT 3.15p on my Windows98 system. Now I want to use
GNATCOM and GWindows. At compiling GNATCOM, I got an error from the linker.
It can't find the library ole32. What am I missing? Am I missing some
required software or do I have to use an additional option for the linker?

Thanks,
Vincent


C:\Programme\gnatcom\bindings>make reggnatcom
gnatmake -gnatg reggnatcom
gnatbind -x reggnatcom.ali
gnatlink reggnatcom.ali
ld: cannot find -lole32
gnatlink: cannot call C:\PROGRA~1\GNAT\BIN\gcc.exe
gnatmake: *** link failed.
C:\PROGRA~1\GNAT\BIN\MAKE.EXE: *** [reggnatcom] Error 4

C:\Programme\gnatcom\bindings>gnatlink -v reggnatcom.ali

GNATLINK 3.15p  (20020523) Copyright 1996-2002 Free Software Foundation,
Inc.
gcc -c -gnatA -gnatWb -gnatiw -gnatws b~reggnatcom.adb
C:\PROGRA~1\GNAT\BIN\gcc.exe b~reggnatcom.o ./gnatcom.o ./gnatcom-types.o
./gnatcom-initialize.o ./gnatcom-bstr.o ./gnatcom-errors.o ./gnatcom-guid.o
./gnatcom-register.o ./reggnatcom.o -o
reggnatcom.exe -L./ -LC:\PROGRA~1\GNAT\lib\gcc-lib\pentium-mingw32msv\2.8.1\
adalib\ -lole32 -loleaut32 -luser32
C:\PROGRA~1\GNAT\lib\gcc-lib\pentium-mingw32msv\2.8.1\adalib\libgnat.a -Wl,-
-stack=0x2000000
ld: cannot find -lole32
GNATLINK: cannot call C:\PROGRA~1\GNAT\BIN\gcc.exe


_______________________________________________
comp.lang.ada mailing list
comp.lang.ada@ada.eu.org
http://ada.eu.org/mailman/listinfo/comp.lang.ada




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Error linking gnatcom: cannot find -lole32
  2003-03-20 21:10 Error linking gnatcom: cannot find -lole32 Vincent Smeets
  2003-03-21 16:05 ` David Botton
@ 2003-03-21 21:28 ` Vincent Smeets
  1 sibling, 0 replies; 5+ messages in thread
From: Vincent Smeets @ 2003-03-21 21:28 UTC (permalink / raw)


Hallo again,

I have found the answer myself.

I have only installed gnat-3.15p-nt.exe and not gnatwin-3.15p.exe. After installing gnatwin, I could compile gnatcom without problems.

Vincent


"Vincent Smeets" <kein@spam.de> schrieb im Newsbeitrag news:b5daos$u79$05$1@news.t-online.com...
Hallo,

I have installed GNAT 3.15p on my Windows98 system. Now I want to use GNATCOM and GWindows. At compiling GNATCOM, I got an error from the linker. It can't find the library ole32. What am I missing? Am I missing some required software or do I have to use an additional option for the linker?




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Error linking gnatcom: cannot find -lole32
  2003-03-21 16:05 ` David Botton
@ 2003-03-21 22:45   ` svaa
  2003-03-24 15:47     ` Stephen Leake
  0 siblings, 1 reply; 5+ messages in thread
From: svaa @ 2003-03-21 22:45 UTC (permalink / raw)


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.
I've supposed that it looks for libole32.o or libole32.a or it has
something to do with directories. I've tried

   pragma Linker_options ("--dll-search-prefix=c:/windows/system32/");
   pragma Linker_Options ("-Lc:\windows\system32\");

and lot of things. But it doesn't works neither. Perhaps there is some
problem with my special configuration, W2k usually has the system
files in c:\winnt not in c:\windows.

It's just speculation, I don't have the first idea and I don't know
what else try.


"David Botton" <David@Botton.com> wrote in message news:<mailman.2.1048262802.20696.comp.lang.ada@ada.eu.org>...
> Are you using all the latest:
> 
> http://www.adapower.com/gnatcom/gnatcom-20020610.zip
> http://www.adapower.com/gwindows/gwindows-1_1p.zip
> 
> David Botton
> 
>



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Error linking gnatcom: cannot find -lole32
  2003-03-21 22:45   ` svaa
@ 2003-03-24 15:47     ` Stephen Leake
  0 siblings, 0 replies; 5+ messages in thread
From: Stephen Leake @ 2003-03-24 15:47 UTC (permalink / raw)


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



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-03-24 15:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2003-03-21 21:28 ` Vincent Smeets

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