Linking problems with PostgreSQL
Linking problems with PostgreSQL
- Subject: Linking problems with PostgreSQL
- From: jean Bousquet <email@hidden>
- Date: Fri, 11 Jul 2003 11:01:14 +0200
Hello,
It is the first time I use PostgreSQL in Cocoa. No problem in compiling but
I have been stuck in linking. I get the following link error :
ld: table of contents for archive: /usr/local/pgsql/lib/libpq.a is out of
date; rerun ranlib(1) (can't load from it)
I put a link from my libpq.a into the files of the project.
My libpq.a file seems to be OK (its date = 19 june 2003 = date of my
installation of postgresql 7.3.3, its size= 282 384 bytes).
My libraries search path is : /usr/local/pgsql/lib which is the directory
where the postgresql lib are.
From this point I don't know what to do to fix the problem.
Any help would be very appreciated.
Here is the full error message :
StandaloneExecutable.LinkUsingFileList
/Users/jbo/Develop/ApprentissageCocoa/Choice/build/Choice.app/Contents/MacOS
/Choice
/usr/bin/gcc3 -o
/Users/jbo/Develop/ApprentissageCocoa/Choice/build/Choice.app/Contents/MacOS
/Choice "-L/Users/jbo/Develop/ApprentissageCocoa/Choice/build"
"-L/usr/local/pgsql/lib"
"-F/Users/jbo/Develop/ApprentissageCocoa/Choice/build" -filelist
/Users/jbo/Develop/ApprentissageCocoa/Choice/build/Choice.build/Choice.build
/Objects-normal/LinkFileList "-arch" "ppc" "-prebind"
"-Wl,-no_arch_warnings" "-framework" "Cocoa" "-lpq" "-lssl" "-lcrypto"
ld: table of contents for archive: /usr/local/pgsql/lib/libpq.a is out of
date; rerun ranlib(1) (can't load from it)
ld: warning prebinding disabled because dependent library:
/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit can't be
searched
...failed StandaloneExecutable.LinkUsingFileList
/Users/jbo/Develop/ApprentissageCocoa/Choice/build/Choice.app/Contents/MacOS
/Choice ...
Jean
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.