[erlang-questions] nif problem in windows

Michael Santos michael.santos@REDACTED
Tue May 7 15:16:36 CEST 2013


On Tue, May 07, 2013 at 06:00:57PM +0800, 韦崇焜 wrote:
> hi
> 
> I am testing nif in windows right now, the nif c code is very simple and it is copyed directly from http://www.erlang.org/doc/tutorial/nif.html#id64988
> 
> All the code is running well in Linux, and c code is compiled to .so in linux, .dll in windows
> 
> Everything is ok before I running "c(complex6)" in erlang VM, in windows, 
> 
> it reports 
> 
> =ERROR REPORT==== 7-May-2013::17:36:19 ===
> Error in process <0.70.0> with exit value: {{badmatch,{error,{load_failed,"Faile
> d to load NIF library ./complex6_nif: 'Unspecified error'"}}},[{complex6,init,0,

Under Windows, does specifiying the path as "./complex6_nif" work? If
so, is complex6_nif.dll in the current working directory?



More information about the erlang-questions mailing list