CartoDB / odbc_fdw

PostgreSQL Foreign-data Wrapper for ODBC
Other
70 stars 22 forks source link

Compilation instructions for Windows in the README #118

Open taywater opened 4 years ago

taywater commented 4 years ago

With the Windows build process being explicitly supported (https://github.com/CartoDB/odbc_fdw/pull/101), adding compilation instructions for Windows in the README would be tremendously helpful.

aintitfun commented 4 years ago

+1, on msys/mingw the resulting dll works fine but on visual studio I have some dll dependency errors with the resulting dll.

mlt commented 4 years ago

@aintitfun You need to match VC runtime to that used by EDB binary. That is you might have problems using newer Visual Studio for older PostgreSQL and vice versa. Also make sure you use Release build if you want to use it on another machine. It is really a single line. You can try opening x64 Native Tools Command Prompt for VS and use

msbuild /p:PlatformToolset=v141 /p:configuration=Release /p:platform=x64 odbc_fdw.vcxproj

This should work for PG 12.