How does linker choose library with same function export?

Biswapriyo Nath nathbappai@gmail.com
Sat Oct 19 12:56:00 GMT 2019


I want to use socket() from ws2_32.dll file. But cygwin1.dll also has that
export. When I use `-lws2_32` option, will gcc **always** choose
ws2_32.lib? My query is somewhat similar with FAQ #5.11.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list