Re: Getting iPhone Simulator App to compile with libpq on Snow Leopard

Поиск
Список
Период
Сортировка
От Jan Otto
Тема Re: Getting iPhone Simulator App to compile with libpq on Snow Leopard
Дата
Msg-id 259BEB06-1968-43A3-B693-AA5D9A99D460@me.com
обсуждение исходный текст
Ответ на Getting iPhone Simulator App to compile with libpq on Snow Leopard  (Bob Henkel <bob.henkel@gmail.com>)
Ответы Re: Getting iPhone Simulator App to compile with libpq on Snow Leopard
Список pgsql-general
hi bob,

> Undefined symbols:
> "_fopen$UNIX2003", referenced from:
>     _parseServiceInfo in libpq.i386(fe-connect.o)
>     _PasswordFromFile in libpq.i386(fe-connect.o)
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
>
> Any help would be greatly appreciated.

hm, fopen is a standard c (libSystem) function. make shure you
have linked your library (libpq) against the same versions of
standard libraries as you try with your iphone-app.

check your linker options, specially -isysroot.

you can check later to which libSystem your lib or app was built
with: otool -L <LibOrApp>

regards, jan otto

В списке pgsql-general по дате отправления:

Предыдущее
От: Mark Styles
Дата:
Сообщение: Re: Looking for a script that performs full online backup of postgres in archive mode
Следующее
От: Jukka Inkeri
Дата:
Сообщение: Re: Looking for a script that performs full online backup of postgres in archive mode