Bug #1375
Wrong postgresql include in many linux distros
Status: | New | Start date: | 01/30/2016 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | Miroslav Fidler | % Done: | 0% | |
Category: | Sql | Spent time: | - | |
Target version: | - |
Description
http://www.ultimatepp.org/forums/index.php?t=msg&goto=45945&#msg_45945
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.
History
#1 Updated by Jan Dolinár about 9 years ago
- Subject changed from Wrong posgresql include in many linux distros to Wrong postgresql include in many linux distros