[Mono-list] Mono Embedding in Visual Studio 2008
whereiskent at gmail.com
Sun Sep 13 14:11:49 EDT 2009
Just to update on my last post. I thought maybe the def file was wrong
because it was from the latest sources so I downloaded the one that is meant
to be for the same release version from here
Which is the same version as the package from here
But I still get the same result. It just crashes.
> 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
> 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
>>> 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
>>> 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
>>> (This might've been a bad idea)
>> That gives bonus points ;-)
>> Mono-list maillist - Mono-list at lists.ximian.com
View this message in context: http://www.nabble.com/Mono-Embedding-in-Visual-Studio-2008-tp22681009p25405800.html
Sent from the Mono - General mailing list archive at Nabble.com.
More information about the Mono-list