[erlang-questions] NIFs, what am I missing?

Evans, Matthew <>
Fri Mar 4 23:46:00 CET 2011

That wasn't it.

I needed the -m32 option on gcc

gcc -shared -fPIC -o idxavcspc.so idxavcspc.c -I /thirdPartyErlang/x86_32/usr/include/ -m32

-----Original Message-----
From: Paul Davis [mailto:] 
Sent: Friday, March 04, 2011 5:11 PM
To: Evans, Matthew
Subject: Re: [erlang-questions] NIFs, what am I missing?

On Fri, Mar 4, 2011 at 4:55 PM, Evans, Matthew <> wrote:
> The file is there:
> 9>  filelib:is_file("/home/mevans/atis/idxavcspc.so").
> true
> But will not load (won't load from the module either):
> 10>  erlang:load_nif("/home/mevans/atis/idxavcspc",0).
> {error,{load_failed,"Failed to load NIF library: '/home/mevans/atis/idxavcspc.so: cannot open shared object file: No such file or directory'"}}
> I'm currently confused....
> Thanks
> Matt
> Running: R14B01

Random guess from left field, perhaps the module loader isn't
following a symlink in that path?

More information about the erlang-questions mailing list