#include #include int main () { // void* h1 = dlopen( "/home/vishap/p4/wb/main/stage-g/lib/amd64/libProteus.so", RTLD_LAZY|RTLD_GLOBAL); void* h1 = dlopen( "/home/vishap/p4/wb/main/stage-g/lib/amd64/libProteus.so", RTLD_NOW|RTLD_GLOBAL); if ( !h1 ) puts( dlerror() ); printf( "handle1 = 0x%x\n", h1 ); void* h2 = dlopen( "/home/vishap/p4/wb/main/src/icwb/test/libProteus.so", RTLD_LAZY|RTLD_GLOBAL); if ( !h2 ) puts( dlerror() ); printf( "handle2 = 0x%x\n", h2 ); dlclose(h1); dlclose(h2); return 0; }