Connect iPhone App to PostgreSQL Using Libpq

落花浮王杯 提交于 2019-11-29 08:55:26

It looks like you are not actually linking in the library. You have added the directory it is in to your search path, but I don't see -lpq anywhere on your link line.

Also, the simulator environment is 32 bit only, x86_64 libs won't work with simulator binaries.

Ok got around the issue thanks from the comment by Louis. I did this by changing makefile line that built the i386 version. I added CFLAGS=-arch i386" to look like this

#Then build i386 library
make clean && ./configure CFLAGS="-arch i386" && make -C src/interfaces/libpq

I now have another issue that I will post a new question to an reference this link.

You can try using PGSQLKit for iOS from http://www.postgresqlformac.com

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!