-
Notifications
You must be signed in to change notification settings - Fork 292
Open
Description
系统: Ubuntu22.04 LTS
按照要求装了libpq-dev,根据说明在cmake --build build --config DEBUG 的时候报错找不到libpq-fe.h,如下
Consolidate compiler generated dependencies of target test_ormpp
[ 20%] Building CXX object tests/CMakeFiles/test_ormpp.dir/test_ormpp.cpp.o
In file included from /home/ormpp/tests/test_ormpp.cpp:12:
/home/ormpp/ormpp/postgresql.hpp:8:10: fatal error: libpq-fe.h: No such file or directory
8 | #include <libpq-fe.h>
| ^~~~~~~~~~~~确定已经安装了libpq-dev,查看了libpq-fe.h是在/usr/include/postgresql下,又改了CMakeLists.txt
加了这一句
include_directories(/usr/include/postgresql)之后这里是不报错了,但是出现一大堆连接时找不到的报错
也试过安装整个postgres,还是不行。
Metadata
Metadata
Assignees
Labels
No labels