How to use linux library functions in C user program? -


i looking use init_bch , encode_bch , decode_bch available in linux library

source code bch.c ( http://lxr.free-electrons.com/source/lib/bch.c)

can write user program like

int main() {     ret = init_bch(args);     return 0; } 

i think need somehow make shared object , link while building c source.

side question: bch.c source precompiled , linked shared object (perhaps libc.so or libm.so)

that code part of kernel, , not compiled kernel default. (it used on embedded systems bch encoding/decoding required access raw nand flash devices.) on systems, not accessible userspace.

if need functions in program, can copy file own program , use minor modifications. (keep in mind require license program under gplv2.)


Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -