36 #define DRVSPEC_LEN 400
45 fprintf( stderr,
"libltdl error: %s\n",
lt_dlerror() );
54 char * library_target_prefix;
58 char *string, *token, *saveptr;
62 library_target_prefix =
argv[1];
67 fprintf( stderr,
"%s needs to be invoked with two additional string arguments (library target prefix and driver name) beyond the application name\n",
argv[0] );
75 #if defined ( LTDL_WIN32 ) || defined ( __CYGWIN__ )
83 fprintf( stderr,
"Could not open driver module %s\n"
84 "libltdl error: %s\n", drvspec,
lt_dlerror() );
88 info = (
char **)
lt_dlsym( dlhand, sym );
91 printf(
"%s", *info );
96 fprintf( stderr,
"Could not read symbol %s in driver module %s\n"
97 "libltdl error: %s\n", sym, drvspec,
lt_dlerror() );