Web lists-archives.org

[Mingw-users] undefined reference to `inet_aton' in WIndows/mingw




I'm porting a simple Unix program, that uses sockets, to Windows with the use
of wingw gcc.

I'm getting a linker error "undefined reference to `inet_aton'" when I
compile my program:

  \mingw\bin\gcc -o ir2diskc ir2diskc.c -lsw2_32

Do I need to link with some other library in addition to sw2_32 or is
inet_aton() simply not available in Windows?
If it is the latter how do you convert an address to binary in Windows?

Thank you.

-- 
View this message in context: http://www.nabble.com/undefined-reference-to-%60inet_aton%27-in-WIndows-mingw-tf4807909.html#a13756202
Sent from the MinGW - User mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users