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

From: Jan Otto <asche(at)me(dot)com>
To: Bob Henkel <bob(dot)henkel(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Getting iPhone Simulator App to compile with libpq on Snow Leopard
Date: 2009-11-09 14:40:57
Message-ID: 259BEB06-1968-43A3-B693-AA5D9A99D460@me.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jukka Inkeri 2009-11-09 14:44:17 Re: Looking for a script that performs full online backup of postgres in archive mode
Previous Message Sam Mason 2009-11-09 14:24:35 Re: Looking for a script that performs full online backup of postgres in archive mode