[Mono-devel-list] Call functions defined modules for libmetadata.so from libmonogc.so?

Okehee Goh okehee at gmail.com
Wed Nov 24 13:23:23 EST 2004


Hello,
Seems that my question might be very basic about a call dependency or
library dependency in C linking. Sorry about that.

Currently, MONO runtime libraries including libmonoruntime.la,
libmetadata.la etc. calls functions defined in libmonogc.so. I wonder
whether it's allowed to call functions defined modules for
libmetadata.so from libmonogc.so.
But i need to have functions in libmonogc.so call functions in
libmetadata.la etc. Right now, I got "undefined.." error while trying
that.

A manual about linking says that all function names are maintained
global while linking no matter what the the linking order of  the
libraries. I interpret that linker must be able to find functions
defined somewhere in libraries linked together. But my test is
affected on the order as given in the following in Makefile.
libs = \
    $(monodir)/mono/metadata/libmonoruntime.la  \
    $(monodir)/mono/metadata/libmetadata.la \
    $(monodir)/mono/io-layer/libwapi.la \
    $(monodir)/mono/utils/libmonoutils.la \
    ../../libgc/.libs/libmonogc.so

Anyway, my question is whether it's allowed to call functions defined
modules for libmetadata.so from libmonogc.so?


Regards



More information about the Mono-devel-list mailing list