1 year ago
#367314
OmniSudo
sys/socket.h missing compiling with libpq on windows mingw
When I am trying to compile my project that uses libpq-fe.h
and MinGW, I get the following error. I also see that the folder postgresql/server/port/win32
has the file sys/socket.h
, but when I try to add that as an included directory I am met with a more complex error.
C:/msys64/mingw64/include/postgresql/server/getaddrinfo.h:25:10: fatal error: sys/socket.h: No such file or directory
25 | #include <sys/socket.h>
| ^~~~~~~~~~~~~~
Thanks in advance.
c++
sql
postgresql
libpq
0 Answers
Your Answer