[Mono-dev] Cross directory function call in Mono's build system
vargaz at gmail.com
Thu Apr 14 08:07:48 EDT 2011
Add a new entry to MonoRuntimeCallbacks and make the code in mini.c
initialize it to the function you want to call, then call this entry from
On Thu, Apr 14, 2011 at 1:55 PM, Martin Däumler <mdae at cs.tu-chemnitz.de>wrote:
> I'm modifying Mono 2.6.1 and I want to call a function from
> within function 'mono_delegate_ctor()' in source file
> "mono/metadata/object.c". The function to be called is a
> custom function defined in source file "mono/mini/mysourcefile.c"
> (which is already included in the build process of directory
> "mono/mini"). So, I added "mysourcefile.c" to the list of
> source files in Makefile.am in "mono/metadata". However, the
> code in "mysourcefile.c" uses a lot of functions of source
> files in "mono/mini.c". So, the linker says there are a lot
> of undefined references. Including the referenced source
> files works as far as the function
> 'MONO_DEBUGGER__notification_function()' is referenced. It
> is declared in "mono/debug-debugger.c" and marked as extern.
> Although "mono/debug-debugger.c" is included, the linker
> says the reference to this function is undefined.
> This is the point where I hang. Any hints how to get Mono
> built with my custom function call?
> With kind regards,
> Martin Däumler
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-devel-list