This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
error with -mno-cygwin option
- To: "'cygwin at cygwin dot com'" <cygwin at cygwin dot com>
- Subject: error with -mno-cygwin option
- From: Siever Bryan-BSIEVER1 <BSIEVER1 at motorola dot com>
- Date: Tue, 27 Mar 2001 10:12:32 -0600
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