Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR fixes compiling the pg extension with MSVC 2022 when using ex…
…tconf.rb, nmake and libpq installed by vcpkg (not mingw64). Running the command: ruby extconf.rb --with-pg-include=c:\Source\vcpkg\installed\x64-windows\include --with-pg-lib=c:\Source\vcpkg\installed\x64-windows\lib Fails with linker errors: pg_connection.obj : error LNK2019: unresolved external symbol __imp_WSAGetLastError referenced in function pg_rb_thread_io_wait This is fixed by adding ws2_32.lib to the linker command.
- Loading branch information