System.EntryPointNotFoundException:while importing libsrp in a c# code under ubuntu
- by Hema Joshi
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?