[Mono-dev] Creating a dll

Staffan Ström s.staffan at gmail.com
Mon Jul 3 06:24:59 EDT 2006

Hi all!
Maybe a basic question, but I just do't get what's wrong.

I'm creating a dll using gmcs (mono ver and it's compiles ok and
may dll-file is created. But when I'm trying to reference to that dll in
another build gmcs craches with the following message:

***** Start of error message *****

Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.


in (wrapper managed-to-native)
System.Reflection.Assembly:LoadFrom(string,bool) <0x4>
in (wrapper managed-to-native)
System.Reflection.Assembly:LoadFrom(string,bool) <0xffffffe4>
in System.Reflection.Assembly:LoadFrom (string) <0xc>
in Mono.CSharp.Driver:LoadAssembly (string,string,bool) <0xb0>
in Mono.CSharp.Driver:LoadAssembly (string,bool) <0x11>
in Mono.CSharp.Driver:LoadReferences () <0x7d>
in Mono.CSharp.Driver:MainDriver (string[]) <0x53f>
in Mono.CSharp.Driver:Main (string[]) <0x51>
in (wrapper runtime-invoke) System.Object:runtime_invoke_int_string[]

This application has requested the Runtime to terminate it in an unusual
Please contact the application's support team for more information.

***** End of error message *****

 If I'm trying to reference to the first dll in a MS Visual Studio project,
it complains about the dll not being a valid assambly...
If I use the same src-files in a MS Visual Studio project and creates a dll,
it works fine (and may be referenced to in other builds)...

Does anyone have an idea what I might be doing wrong?

The command I use when creating the failing dll is:

"gmcs.bat /nologo /debug- /optimize-
/target:module /nostdlib- /warn:3
/fullpaths /incremental-
.\*.cs .\exception\*.cs .\to\*.cs .\to\generic\*.cs"

Brgds Staffan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060703/232de177/attachment.html 

More information about the Mono-devel-list mailing list