libpq-dev - GCC 12.x cannot find postgresql includes unless -I directive used
This is related to package libpq-dev on Ubuntu 22.04
https:/
In order for the compiler to auto-find the header files, it seems that the /postgresql directory in /usr/include should be relocated to /usr/include/
-I/usr/
If this include directive is not given, then compilation fails because the compiler for some reason cannot find pgsql header files. Maybe /usr/include should be enough, but I observe that other libs do install their headers in /usr/include/
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Martin Cordova for more information if necessary.