Dear experts,
please help
#include <stdio.h>
#include <dlfcn.h>
#include <link.h>
#include <iostream.h>
#include<stdlib.h>
#include<errno.h>
void main()
{
printf("\n in the main\n");
void *handle;
handle = dlopen("my.so", RTLD_LAZY);
if( handle == NULL )
{
printf("errno[%d], errmsg[%s]\n", errno, dlerror());
exit(1);
}
else
{
printf("\n loaded successfully");
}
}
when i execute this file i am getting
errno[0], errmsg[ld.so.1: ./sotest: fatal: relocation error: file /user/vpp/Sun64/sys/libodl.so: symbol __1cDstdDcin_: referenced symbol not found]
even though that so is working fine in some other application i am just trying to check with other SOs which were having some problem but my working so is also showing some problem like what is the reason, please inform how to solve this problem