ITEM: H3100L
linker/loader and shared libraries (C, C++).
Question:
I want to have a compiled main routine written in C++ be able to
dynamically load an arbitrary "C" function at runtime.
I could use the linkage editor to create a single executable, but I
want to have the main routine be the executable that I load from the
command-line and then let it take care of loading the appropriate
subroutine(s) dynamically.
Is this possible ?
Response:
You can use shared libraries - but you think there may be a problem
with getting the main program to find the correct paths to the
subroutines.
Response:
Told Customer that he should "ld" to construct a loadable object. E.g.
ld -o obj.o -H512 -T512 -e entry_point file1.o file2.o ... -lc ...
would build an object that can be loaded via the load() function.
We also discussed correct declarations of the C functions (in C++)
that will be loaded.
Support Line: linker/loader and shared libraries (C, C++). ITEM: H3100L
Dated: March 1994 Category: N/A
This HTML file was generated 99/06/24~13:30:47
Comments or suggestions?
Contact us