woensdag, mei 25, 2005

Proc compilation and linking with xcode 2.0.

Initially compiling and linking proc program was a bit problematic.
For compilation I defined a dependency structure using an aggregate target that depends on the *.pc file resulting in the *.c file where the object file depends on.

The problem I got after linking was
ZeroLink: unknown symbol '_iaprval' at runtime.

Disabling zerolink might help (caveats using zerolink)
It does help !
disable zerolink
disable prebinding
set Library Search Paths to ${ORACLE_HOME}/lib /usr/lib
add $ORACLE_HOME/lib/* to the project and remove *.zip *.jar *.o and the empty files.
now it must work, at least it does in my installation (tiger, xcode 2, gcc 4.0 & 3.3)