comp.lang.ada
 help / color / mirror / Atom feed
From: "Steve" <nospam_steved94@comcast.net>
Subject: Re: Link Problem
Date: Tue, 18 May 2004 01:17:58 GMT
Date: 2004-05-18T01:17:58+00:00	[thread overview]
Message-ID: <avdqc.71009$iF6.5983645@attbi_s02> (raw)
In-Reply-To: 40a9231e$0$8417$a0ced6e1@news.skynet.be

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
>
>
>





  parent reply	other threads:[~2004-05-18  1:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-17 20:40 Link Problem Holger Ziegler
2004-05-17 21:24 ` tmoran
2004-05-18  1:17 ` Steve [this message]
2004-05-18  8:14   ` Holger Ziegler
replies disabled

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