Linking problems

Поиск
Список
Период
Сортировка
Искать

Linking problems

От:
jean Bousquet <cogilog@cogilog.com>
Дата:
Hello,
It is the first time I try to compile and link an app using the library
libpq, get some problems and I am a bit lost.

Compile seems OK but the link complains :
ld: warning prebinding disabled because of undefined symbols
ld: Undefined symbols:
_PQconnectdb
_PQstatus

In fact I use PQconnect and PQStatus functions in my code.

the error comes just after this line :
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"

I use Mac OSX.2 and cocoa as dev. tool
At this time I have no idea what to do to fix the problem.
Thanks for help and advice.

Jean

FAQ