Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation instructions for Windows in the README #118

Open
taywater opened this issue Jan 17, 2020 · 2 comments
Open

Compilation instructions for Windows in the README #118

taywater opened this issue Jan 17, 2020 · 2 comments

Comments

@taywater
Copy link

With the Windows build process being explicitly supported (#101), adding compilation instructions for Windows in the README would be tremendously helpful.

@aintitfun
Copy link

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

@mlt
Copy link

mlt commented Jul 3, 2020

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants