Re: [Cocoapsql-developer] commit; Libpq.a and libpq-fe.h; referencing files and using search path
Status: Alpha
Brought to you by:
alkirkus
From: Ted P. <te...@sy...> - 2002-05-31 02:25:10
|
I am set up as follows /usr/local/pgsql/lib /usr/local/pgsql/include 1. from the 'files' tab drill down the frameworks => linked frameworks delete the reference to libpq.a 2. targets tab ... files and build section.... delete any reference to libpq.a 3. targets tab build settings CC compiler settings other compiler flags add this line -I/usr/local/pgsql/include Linker settings other linker flags add this line -L/usr/local/pgsql/lib -lpq at the bottom of this area: Search Paths: remove any reference to sw.... from two places (headers and libraries) so they only show a reference to /usr/local/pgsql/include and /lib.... then clean all targets.... and do a build. PB will now look only to the other paths for libpq.a. good luck Ted -----Original Message----- From: Olaf van Oudenallen <ol...@ad...> To: "Ted Petrosky" <te...@sy...> Date: Thu, 30 May 2002 16:49:49 +0200 Subject: Re: [Cocoapsql-developer] commit; Libpq.a and libpq-fe.h; referencing files and using search path > Hi Ted, > > Thanks for your reply on this issue. > Her is what I did: > Place a copy of the libpq.a in the Cocoapsql folder > Change the path to the existing libpq.a file to ./Cocoapsql > Clean the target > Remove the libpq.a file form the ./Cocoapsql folder > >> now the linker should find the libpq.a file through the > LIBRARY_SEARCH_PATH path(es) > Build: error... can find libpq.a > > Headers are found with the help of the HEADER_SEARCH_PATH path. I wonder > why the lib is not found. > |