dlsymについて
Posted: 2010年4月12日(月) 22:19
教えてください。
dlsym で ライブラリのシンボルの中身を知りたいです。
const char *aaa = "aaaa"; シンボルとした際、
void *handle;
handle = dlopen( "ライブラリパス", RTLD_LAZY );
void *n = dlsym( handle, "aaa" );
といった感じで const char の文字列を取ってこれるのでしょうか?
dlsym で ライブラリのシンボルの中身を知りたいです。
const char *aaa = "aaaa"; シンボルとした際、
void *handle;
handle = dlopen( "ライブラリパス", RTLD_LAZY );
void *n = dlsym( handle, "aaa" );
といった感じで const char の文字列を取ってこれるのでしょうか?