This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Linking difficulties with internet functions



I'm trying to compile a program, and get the following link error
message:

BASH.EXE-2.02$ gcc -o logger logger.c
C:\WINDOWS\TEMP\ccCLzhDq.o(.text+0x1f3):logger.c: undefined reference to `inet_
aton'
collect2: ld returned 1 exit status

Obviously, the function must be defined in the headers, but it's
not being linked in. 

Which library do I need to include to get this function?

TIA

-- 
---------------------------------------------------------------------------
Robert Merkel		                                    rgmerk@mira.net

Humanity has advanced, when it has advanced, not because it has been sober, 
responsible, and cautious, but because it has been playful, rebellious, and 
immature.
		-- Tom Robbins
---------------------------------------------------------------------------

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]