-
Notifications
You must be signed in to change notification settings - Fork 81
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
Not able to build on windows #25
Comments
Hi, Any update on this. |
I guess I have the same error as @dharmjit but the inline formatting really doesn't help in reading it 😅 (please fix it)
I really don't know what this is and what I'm talking about, so I tried a bare bone "googling" and a quick browsing led to similar issues in other codebases like here and here but you can find tons of them across multiple programming languages. From my understanding it all boils down to different dependencies under Windows and Unix. Here is some info on the library. The general agreement I found on the subject is to use a conditional including, under windows host the library to be used should be Anyway the bug clearly isn't related specifically to A temporary workaround I am using is to build my application in a linux docker container, not the best workflow but works. |
I was just trying this out in a test project, but right now it seems like the include file that is missing is expected to be in this project. Is this because this is work in progress? Compiler error on Widows:
|
This is because Postgres itself supports Windows, but libpg_query (and pg_query_go by extent) does not today. Its definitely possible, but requires pulling in the right files (and a Windows machine to test with). The relevant file, in case that helps, is in https://github.com/postgres/postgres/blob/master/src/include/port/win32_port.h - but its likely making this work is more complicated than just fixing the import by adding the missing file. See pganalyze/libpg_query#44 - contributions welcome, but over the years nobody from the community has made the effort to try to fix this, and unfortunately neither I nor the other maintainers of the library run Windows ourselves, thus making this a bit hard to get fixed. |
Windows support has been added in #107 and released as v5.1.0. |
Hi, I am tryoing to build this project on windows and getting below error
I have tried the modules step as well but no success. I have searched for netdb.h and this file is not there in the include folder.
How I can resolve this. Thanks
The text was updated successfully, but these errors were encountered: