chets schrieb:
I created a shared library for a PRO *C program abc.pc as abc.so. I
want to use function fun() written inside this program using
dlopen(),dlsym() etc in another program test.c working on linux.Then at
dlsym it gives me dlerror() saying "./test: undefined symbol: fun".
Probably it is not able to resolve the symbol name "fun" from the
shared library.Hence if possible help me to resolve this problem.
I am no expert in PRO*C. My understanding is the following:
Embedded SQL is compiled in two steps.
First, the precompiler replaces all SQL statements in the C or C++ Code
with appropriate SQL runtime calls. The results is 100% C or C++ which
is then compiled with a C or C++ compiler.
Are you able to generate a C or C++ programme with embedded SQL, i.e.
without shared library?
If yes: How did you link your C or C++ modules into a shared library
(give us the linker line)?
Another potential problem: Are you trying to combine C and C++ without
having declared C linkage?
Cheers
Michael
--
E-Mail: Mine is an /at/ gmx /dot/ de address.
|