[Mono-list] Unhandled Exception: System.EntryPointNotFoundException: Foo

Jonathan Pryor jonpryor at vt.edu
Mon Sep 25 20:44:51 EDT 2006


On Mon, 2006-09-25 at 15:18 -0700, Srikanth Chavali wrote:
> Hi,
>    I am trying to run a .exe file with mono on a linux system and i
> see the error:
> Unhandled Exception: System.EntryPointNotFoundException:Foo
> 
> Foo is defined in a .cpp file. The .exe does DllImport and Foo is the
> entry point in that function.

Is Foo() marked as `extern "C"'?

You can check by running `nm -D libyourlib.so' and checking that `Foo'
is one of the named exports, and not some mangled version.

 - Jon




More information about the Mono-list mailing list