System.EntryPointNotFoundException:while importing libsrp in a c# code under ubuntu

Posted by Hema Joshi on Stack Overflow See other posts from Stack Overflow or by Hema Joshi
Published on 2010-04-08T07:30:49Z Indexed on 2010/04/08 7:33 UTC
Read the original article Hit count: 435

Filed under:

hi, i am importing libsrp.so in a c# code under ubuntu.my code is

using System; using System.IO;

using System.Text;

using System.Runtime.InteropServices; namespace Main { public static class Test {

[DllImport("libsrp.so" ,EntryPoint = "SRP_initialize_library", CallingConvention=CallingConvention.Cdecl)] public static extern int SRP_initialize_library();

[DllImport("libsrp.so" ,EntryPoint = "SRP_finalize_library", CallingConvention=CallingConvention.Cdecl)]

public static extern int SRP_finalize_library(); }

public class Test1 { public static void Main( string[] args ) {

  Console.Write("output is:", Test.SRP_initialize_library());
   Test. SRP_finalize_library();
    Console.Write("\n");

}

}

}

but while runnign the code using mono i am finding error Unhandled Exception: System.EntryPointNotFoundException: SRP_initialize_library at (wrapper managed-to-native) Main.Test:SRP_initialize_library () at Main.Test1.Main (System.String[] args) [0x00000] i am unable to find what is the problem?

please tell me where is the problem?

© Stack Overflow or respective owner

Related posts about mono