Well, a it looks like there is more to this... I actually am getting the error:
err:module:import_dll Library mscoree.dll (which is needed by L"F:\\dp\\test.exe") not found err:module:LdrInitializeThunk Main exe initialization for L"F:\\dp\\test.exe" failed, status c0000135 When I try to run the compiled application. Apparently, something isn't installed correctly. I found that it gives this error when ever I try to do any sort of P/Invoke. I wrote another little test application (code is from http://www.linuxgazette.com/node/view/8794): using System; using System.Runtime.InteropServices; public class App { [DllImport ("libm")] static extern double sqrt (double element); public static void Main () { } } Compiled it, and got the same basic error when I ran it. Any suggestions? Tom -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tom Shelton Sent: Monday, October 25, 2004 5:33 PM To: [EMAIL PROTECTED] Subject: [Mono-list] P/Invoke question... Ok... I have a bit of simple c++ code that is currently residing in a WIN32 dll. This code is called by a custom data provider for a proprietary database (this already works on win32, we're just trying to port the provider over to mono). I have very little experience in actually creating a shared library and getting it working on Linux. I have followed a couple of tutorials on line and so far, no luck. The code compiled just fine with g++, but I can't seem to install it correctly - since Mono never seems g++to be able to find it. Can someone point me to a good resource/tutorial on how to compile/install a shared object file under red hat? What do I have to do after that so that mono can find it? Thanks, Tom Shelton _______________________________________________ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list _______________________________________________ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
