关于,postgresql的编译问题

wdmzm 2003-09-29 09:38:09
我写的c程序,是连接数据库的无法通过编译,是怎么回事,抱这样的错:
test1.c:9: stray '\241' in program
test1.c:9: redeclaration of `pghost'
test1.c:5: `pghost' previously declared here
test1.c:10: stray '\241' in program
test1.c:10: stray '\241' in program
test1.c:10: stray '\241' in program
test1.c:10: stray '\241' in program
test1.c:10: stray '\241' in program
test1.c:10: stray '\241' in program
test1.c:10: stray '\241' in program
test1.c:10: stray '\241' in program
test1.c:10: stray '\241' in program
test1.c:10: stray '\241' in program
test1.c:10: redeclaration of `pgport'
test1.c:6: `pgport' previously declared here
test1.c:11: stray '\241' in program
test1.c:11: stray '\241' in program
那个高手给我个简单的,连接postgresql的c程序。
...全文
23 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
zmnecas 2003-09-30
  • 打赏
  • 举报
回复
程序粘来看看,估计问题是
1.pghost这个变量重定义了
2.该注释的信息没有注释好

56,677

社区成员

发帖
与我相关
我的任务
社区描述
MySQL相关内容讨论专区
社区管理员
  • MySQL
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧