kou opened a new issue, #41340:
URL: https://github.com/apache/arrow/issues/41340

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   We should use import library (`.lib`) no DLL (`.dll`) to link with system 
libraries. So `target_link_libraries(... ws2_32.dll)` isn't wrong. (But it 
seems that it works with MSVC...)
   
   We should use `target_link_libraries(... ws2_32.lib)` (use `.lib`) or 
`target_link_libraries(... ws2_32)` (no extension).
   
   See also: 
https://cmake.org/cmake/help/latest/command/target_link_libraries.html#command:target_link_libraries
   
   > A plain library name: The generated link line will ask the linker to 
search for the library (e.g. `foo` becomes `-lfoo` or `foo.lib`).
   
   See also: https://github.com/microsoft/vcpkg/pull/38295/files#r1574568441
   
   ### Component(s)
   
   C++


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to