On 29.04.2013 21:20, Marcelo Zabani wrote:
When embedding Mono within Nginx, I received the following exception:

*Unhandled Exception: System.EntryPointNotFoundException:
log_error_core_wrapper*
*  at (wrapper managed-to-native) Nam.NginxMethods:ngx_log_error
(uint,intptr,int,string)*
*  at Nam.NginxMethods.LogInfo (IntPtr log, System.String msg) [0x00000] in
<filename unknown>:0 *

The DllImported method is this:

*[DllImport ("__Internal", EntryPoint="log_error_core_wrapper")]*
*public static extern void ngx_log_error(uint level, IntPtr log, int err,
string msg);*


You must link the main executable (nginx) with the the

        -Wl,--export-dynamic

option, otherwise the dynamic linker won't expose its symbols to dlopen.

Robert

_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Reply via email to