comp.lang.ada
 help / color / mirror / Atom feed
* Link Problem
@ 2004-05-17 20:40 Holger Ziegler
  2004-05-17 21:24 ` tmoran
  2004-05-18  1:17 ` Steve
  0 siblings, 2 replies; 4+ messages in thread
From: Holger Ziegler @ 2004-05-17 20:40 UTC (permalink / raw)


I have a program which uses Win32 libraries. The program compiles and links
without problems using ObjectAda. When using GNAT compiling and binding work
fine, but linking creates the following error messages:
./io_receive.o(.text+0x4635):io_receive.ada: undefined reference to
'WSAStartup@8'
./io_receive.o(.text+0x465c):io_receive.ada: undefined reference to
'htons@4'
./io_receive.o(.text+0x4711):io_receive.ada: undefined reference to
'bind@12'


The process has been invoked with gnatmake io_receive.ada.
The system invokes
compilation: gcc -c -x ada io_receive.ada
binding: gnatbind -x io_receive.ali
linking: gnatlink io_receive.ali

Can someone give me a hint what I'm missing?

----------
Thanks,

Holger

holger at jeropia dot de






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

* Re: Link Problem
  2004-05-17 20:40 Link Problem Holger Ziegler
@ 2004-05-17 21:24 ` tmoran
  2004-05-18  1:17 ` Steve
  1 sibling, 0 replies; 4+ messages in thread
From: tmoran @ 2004-05-17 21:24 UTC (permalink / raw)


>'WSAStartup@8'
>'htons@4'
>'bind@12'
>Can someone give me a hint what I'm missing?
  Those look like socket routines.  Are you binding with "windows" and
appropriate libraries/paths?



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

* Re: Link Problem
  2004-05-17 20:40 Link Problem Holger Ziegler
  2004-05-17 21:24 ` tmoran
@ 2004-05-18  1:17 ` Steve
  2004-05-18  8:14   ` Holger Ziegler
  1 sibling, 1 reply; 4+ messages in thread
From: Steve @ 2004-05-18  1:17 UTC (permalink / raw)


As I recall the line needs to be something like:

gnatmake io_receive -largs -lwsock32

Steve
(The Duck)

"Holger Ziegler" <Holger@Jeropia.de> wrote in message
news:40a9231e$0$8417$a0ced6e1@news.skynet.be...
> I have a program which uses Win32 libraries. The program compiles and
links
> without problems using ObjectAda. When using GNAT compiling and binding
work
> fine, but linking creates the following error messages:
> ./io_receive.o(.text+0x4635):io_receive.ada: undefined reference to
> 'WSAStartup@8'
> ./io_receive.o(.text+0x465c):io_receive.ada: undefined reference to
> 'htons@4'
> ./io_receive.o(.text+0x4711):io_receive.ada: undefined reference to
> 'bind@12'
>
>
> The process has been invoked with gnatmake io_receive.ada.
> The system invokes
> compilation: gcc -c -x ada io_receive.ada
> binding: gnatbind -x io_receive.ali
> linking: gnatlink io_receive.ali
>
> Can someone give me a hint what I'm missing?
>
> ----------
> Thanks,
>
> Holger
>
> holger at jeropia dot de
>
>
>





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

* Re: Link Problem
  2004-05-18  1:17 ` Steve
@ 2004-05-18  8:14   ` Holger Ziegler
  0 siblings, 0 replies; 4+ messages in thread
From: Holger Ziegler @ 2004-05-18  8:14 UTC (permalink / raw)


Thanks,

that worked.
----------
Holger
holger at jeropia dot de


"Steve" <nospam_steved94@comcast.net> wrote in message
news:avdqc.71009$iF6.5983645@attbi_s02...
> As I recall the line needs to be something like:
>
> gnatmake io_receive -largs -lwsock32
>
> Steve
> (The Duck)





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

end of thread, other threads:[~2004-05-18  8:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-17 20:40 Link Problem Holger Ziegler
2004-05-17 21:24 ` tmoran
2004-05-18  1:17 ` Steve
2004-05-18  8:14   ` Holger Ziegler

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