How do you make a .so file with exported symbols?

My first post on this disappeared suddenly, so I'm sorry if I somehow duplicated it.

When I try to create a native Android library in Visual Studio that Xamarin can call, the output .so has no symbols in it, including the ones I want. "nm" simply says "no symbols". This is the function I want to export, but it's not appearing:

extern "C" __attribute__((__visibility__("default")))
int TestDriverMain(AndroidFrontEnd::WriteMessageCallback callback, void *context)
{
return 'meow';
}

In IDA Pro, this function is shown, along with all symbol names.

Sign In or Register to comment.