delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/03/27/11:13:33

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <BB60654DFAA8D311B16400508B6F253806B9D4E6@il27exm05.cig.mot.com>
From: Siever Bryan-BSIEVER1 <BSIEVER1 AT motorola DOT com>
To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: error with -mno-cygwin option
Date: Tue, 27 Mar 2001 10:12:32 -0600
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)

Greetings,
	I have some simple sockets code that creates a socket and uses some
of the sockets functions such as inet_ntoa and inet_addr. When I build it
normally (just using gcc with no flags) it builds fine and I get an
executable that is fine. When I use the -mno-cygwin flag, I get this error:
 C:\TEMP/ccEBGzJe.o(.text+0x110):addr_conversio: undefined reference to
`inet_addr'
C:\TEMP/ccEBGzJe.o(.text+0x136):addr_conversio: undefined reference to
`inet_ntoa'
C:\TEMP/ccEBGzJe.o(.text+0x17e):addr_conversio: undefined reference to
`inet_ntoa'
collect2: ld returned 1 exit status

I'm a little new to cygwin so I don't completely understand why it is doing
this. Can you not use these functions in a standalone app? Anyone with an
answer or an explanation would be greatly appreciated.



-Bryan


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019