gcc - Compile Ada sources without the shared libraries -


how can compile hello world program here on glibc environment , run on uclibc environment?

localhost:~$ readelf -d /home/localhost/hello | grep needed 0x0000000000000001 (needed)             shared library: [libc.so.6] 

have @ dlopen() library set of functions. you'll need load libraries source file itself. following code in c, can use interafaces.c in ada interoperate c libraries:

lib_handle = dlopen("/opt/lib/libctest.so", rtld_lazy); if (!lib_handle)  {    fprintf(stderr, "%s\n", dlerror());    exit(1); } 

visit link help. man page dlopen(3) should help.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -