[Mono-list] Embedding Mono on Windows

Robert Jordan robertj at gmx.net
Wed May 11 16:09:52 EDT 2011


On 11.05.2011 22:05, Rod wrote:
> We are presently evaluating mono embedded for use in one of our windows C++
> projects. As it happens we are already building the mono tip on windows
> (using cygwin)  and now trying to follow the mono embedded instructions
> listed here:
>
> http://www.mono-project.com/Embedding_Mono
>
> The directions appear rather Linux specific and possibly out of date, so
> we’re not clear on how to move forward. In short we would like to link mono
> embedded with a Visual Studio 2010 C++ project. How do we generate a mono
> import library  (.lib) that is compatible with Visual Studio 2010? Do we
> generate this lib a part of the mono build process or can this be generated
> from the install package?
>
> One other point, we’re not beholden to the mono tip, we happen to be
> building it as part of a separate project so if there is a way to say,
> download and install the official 2.10.2 release and then run some
> additional step to generate the proper import libraries that would be
> perfectly suitable for our evaluation needs.

Fetch this file: https://github.com/mono/mono/blob/master/msvc/mono.def
and create the .lib with Microsoft's "lib" tool:

lib /machine:x86 /def:mono.def /out:mono.lib

Robert



More information about the Mono-list mailing list