|
|
От: |
aka50
|
|
| Дата: | 26.01.07 23:11 | ||
| Оценка: | |||
class __attribute__ ((visibility("hidden"))) Foo
{
int foo1();
void foo2();
};
void *handle = dlopen("somelib.so", RTLD_LAZY);
void *function = dlsym(handle, "someFunction");
// Do some stuff with function
if(dlclose(handle) != 0)
printf("some error");