[Mono-dev] mono_config_parse won't link, needs extern "C" declaration in header file

Sebastian Good sebastian at palladiumconsulting.com
Wed Apr 2 16:40:31 EDT 2008


Robert, thanks for your reply! The threads.h issue was indeed fixed in 1.9.
It seems to me that adding G_{BEGIN/END}_DECLS to mono-config.h requires a
recompile because it causes the functions to be exported as undecorated C
signatures, rather than fully decorated C++ signatures. This was the only
way I could link against the mono libraries (which I do statically). Am I
misunderstanding something?

As for the other issues, the only one remaining in 1.9 is that the Embedding
Mono documentation (http://www.mono-project.com/Embedding_Mono) discusses
calling another function (mono_set_defaults) to enable optimization in the
JIT which does not seem to be in any .H files available in /include.

Cheers!

Sebastian


Robert Jordan wrote

> Hi,
>
> Sebastian Good wrote:
> >
> > So of course this means re-building Mono. Once that's done, everything
> > works.
>
> What do you mean with re-building Mono? Adding G_BEGIN_DECLS
> to mono-config.h does not require a rebuild.
>
> > There are a raft of problems with the embedding APIs that require many
> > manual changes to get them to work. Have these been fixed in newer code
> > drops? Specifically, there are edits to threads.h and of course the
> above.
>
> The latter was fixed for Mono 1.9. Other issues are unknown at present,
> so please file bugs if they are prevalent in 1.9.
>
> Robert
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20080402/cbec09f1/attachment.html 


More information about the Mono-devel-list mailing list