Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: From: Siever Bryan-BSIEVER1 To: "'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) Content-Type: text/plain; charset="iso-8859-1" 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