Unresolved Symbol on HP UX & oracle7

Hi everyone,
I have a problem.
I do not succeed to linking the oracle7's library for my .so and a Unresolved Symbol :sqlcxt error returns me when I call program.

this is my makefile.

cc -Ae -I/usr/include/curses_colr -L/usr/lib -DUSE_TERMIOS -D_FILE64 -DDYNAMIC_LIBRARIES_SUPPORTED -D_HPUX_SOURCE -w -O +Z -I$ORACLE_HOME/precomp/public -l:$ORACLE_HOME/lib/libsql.a -ldld -c oracobo.c

ld -b -L$ORACLE_HOME/lib -ldld -o oracobo.so oracobo.o

thanks.
Luca

Please change the function
extern void sqlcxt (....); created after the precompilation as extern "C" void sqlcxt (...);

The error wont appear again. Give a try do post back the results.

It's because of you makefile which does not have the right path to these libraries. Try to get a proper makefile (Ex: proc.mk) from your Oracle directory, and compile your program using this make file.