Wrong postgresql include in many linux distros
|Assignee:||Miroslav Fidler||% Done:|
The file libpq-fe.h can be located in /usr/include/posgresql/ (Debian, Ubuntu) or directly in /usr/include (Arch, CentOS, Fedora, Rosa, Slackware, OpenMandriva, Mageia). I think the only universal solution is to #include <libpq-fe.h> on all platforms and distros and fix it by adding /usr/include/postgresql to library paths. I'm aware this might break existing installations, but I don't see any way to detect the correct location of the file at compile time.
#1 Updated by Jan Dolinár over 7 years ago
- Subject changed from Wrong posgresql include in many linux distros to Wrong postgresql include in many linux distros