comp.lang.ada
 help / color / mirror / Atom feed
From: "Marin David Condic" <dont.bother.mcondic.auntie.spam@[acm.org>
Subject: Re: My Gnat is rusty - link error
Date: Thu, 23 Aug 2001 17:27:14 -0400
Date: 2001-08-23T21:27:15+00:00	[thread overview]
Message-ID: <9m3sfj$g48$1@nh.pace.co.uk> (raw)
In-Reply-To: 3B8571D0.64268D43@home.com

I believe you have to specify either a linker option or put the following
pragma into your code somewhere:

    pragma Linker_Options ("-lwsock32") ;

Putting it in the code will make it harder to forget. :-)

Hope this helps.

MDC
--
Marin David Condic
Senior Software Engineer
Pace Micro Technology Americas    www.pacemicro.com
Enabling the digital revolution
e-Mail:    marin.condic@pacemicro.com
Web:      http://www.mcondic.com/


"Thomas Kerstan" <kerstan@home.com> wrote in message
news:3B8571D0.64268D43@home.com...
> I have GNAT 3.12 on a windows 95 machine. (the machine also
> has GNAT 3.01a but I believe that should be irrelevant)
>
> I am able to generate executables for the samples that are
> included in the win32ada/samples directory but when I try
> to compile/bind/link (using gnatmake) some code that uses
> the win32.winsock binding for sockets the compile and bind
> complete without errors, but the gnatlink gives
> undefined reference to 'WSAStartup@8'
> undefined reference to ...
> messages for all of the winsock routines.
>
> any help would be appreciated,
> thanks,
>
> Tom
> kerstan@home.com





  reply	other threads:[~2001-08-23 21:27 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-23 21:02 My Gnat is rusty - link error Thomas Kerstan
2001-08-23 21:27 ` Marin David Condic [this message]
2001-08-24  3:31   ` Thomas Kerstan
2001-08-25  7:04   ` Simon Wright
2001-08-27 14:04     ` Marin David Condic
2001-08-27 16:45       ` David C. Hoos
2001-08-27 18:46       ` tmoran
replies disabled

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