Re: [Mono-dev] mono and unmanaged code

2014-04-04 Thread Greg
Thanks all for the replies. I ended up going back to the source of the library and getting the source code. Built in my Linux environment and working just fine now. On Fri, Mar 28, 2014 at 9:53 AM, Jonathan Pryor [via Mono] ml-node+s1490590n4662386...@n4.nabble.com wrote: On Mar 19, 2014,

Re: [Mono-dev] mono and unmanaged code

2014-03-28 Thread mickeyf
Yes, you should compile your dll in the environment in which it will run, or use a cross compiler targeted to that environment. If you don't have the source I suspect you are out of luck. There is much more to it than simply fiddling with the headers. You may be able to use something like wine,

[Mono-dev] mono and unmanaged code

2014-03-28 Thread Greg
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

Re: [Mono-dev] mono and unmanaged code

2014-03-28 Thread Jonathan Pryor
On Mar 19, 2014, at 12:33 AM, Greg gregorymors...@gmail.com wrote: 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? Mono does not support

Re: [Mono-dev] mono and unmanaged code

2014-03-28 Thread Vincent Povirk
If that isn’t possible, you should look into using Wine. Mono should run atop Wine (last I heard…), so this may be a viable solution for you. The default for Wine nowadays (since 1.5 or so) is to install Mono automatically (for various reasons, it uses a special Windows build) and use it to