[Mono-list] Mono Embedding in Visual Studio 2008

kbar whereiskent at gmail.com
Sun Sep 13 14:11:35 EDT 2009

I am getting the exact same problem.

(1) I installed Mono via the download link for Windows from here 


(2) Downloaded the latest source package "mono-141776.tar.bz2" from here
(just so I can get mono.def) 


Grabbed the mono.def file from the msvc directory (why doesn't msvc it ship
with the windows install?)

Created my lib with "lib /def:mono.def /out:mono.lib /machine:x86"

My project compiles, links runs but crashes when "mono_jit_init" is called.

I have no idea how to debug this.


Robert Jordan wrote:
> Yenian wrote:
>> I'm attempting to embed Mono in a DirectX10 application under VS 2008 and
>> Vista x64 for a school project.  I have done the following things:
>> 1) Installed Mono via the download link above.
>> 2) Acquired the source from SVN and compiled the MSVC directories to
>> obtain
>> new versions of mono.lib and mono.dll
> Wrong. Step one already provides everything you need to embed mono.
> There is no need to mess with compiling mono yourself.
> The only missing file might be mono.lib, the import library
> of mono.dll, but you can create this file with VS' lib.exe
> tool from msvc/mono.def (from mono's sources):
> cd msvc
> lib /def:mono.def /out:mono.lib /machine:x86
>> 3) Replaced those files in the standard Mono-2.2 installation
>> directories. 
>> (This might've been a bad idea)
> That gives bonus points ;-)
> Robert
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list

View this message in context: http://www.nabble.com/Mono-Embedding-in-Visual-Studio-2008-tp22681009p25405519.html
Sent from the Mono - General mailing list archive at Nabble.com.

More information about the Mono-list mailing list