[Mono-dev] mono and unmanaged code

Greg gregorymorse07 at gmail.com
Wed Mar 19 04:33:02 UTC 2014


Greetings,

I'm new to using mono.  I have a Windows application that I have developed
in C# with some P/Invoke calls to an unmanaged dll.  I am attempting to run
this thing in a Linux environment, but am having issues with the unamanged
calls (exact error is given below).  After a fair amount of Googling and
reading, I believe the calls are failing because the unamanged dll has not
been compiled in the native environment.  Is this true, or should mono be
able to handle unmanaged dlls that were compiled in Windows?  If it is true,
how would one proceed when they do not have the source code for this
unamanged dll?  Are there any workarounds like fiddling with the ELF headers
manually, creating some kind of wrapper, decompile/recompile, etc.?

Exact error:
Mono: DllImport error loading library '...': Invalid ELF header

Thanks for any help and/or insults,
Greg



--
View this message in context: http://mono.1490590.n4.nabble.com/mono-and-unmanaged-code-tp4662275.html
Sent from the Mono - Dev mailing list archive at Nabble.com.


More information about the Mono-devel-list mailing list