摘要:
yum install postgresql-devel 安装连接postgresql 相关的库 编写 main.c 使用 gcc -g main.c -o main -I /usr/include -L /usr/lib64 -lpq 编译, 参数详解 ./main.exe 执行 2. main. 阅读全文
摘要:
gcc 编译第三方库 说明: 测试文件, 连接postgresql 数据库, 需要第三方 libpq-fe.h c文件如下, 文件名为 main.c #include <stdio.h> #include <stdlib.h> /** yum install postgresql-devel */ 阅读全文