1 #include <dlfcn.h> 2 3 #define main array1_main 4 #include "tst-array1.c" 5 #undef main 6 7 int main(void)8 main (void) 9 { 10 void *handle = dlopen ("tst-array2dep.so", RTLD_LAZY); 11 12 array1_main (); 13 14 if (handle != NULL) 15 dlclose (handle); 16 17 return 0; 18 } 19