diff options
Diffstat (limited to 'CNativeCode/invokejvm.c')
-rwxr-xr-x | CNativeCode/invokejvm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CNativeCode/invokejvm.c b/CNativeCode/invokejvm.c index 78e5699..dd43a2c 100755 --- a/CNativeCode/invokejvm.c +++ b/CNativeCode/invokejvm.c @@ -43,6 +43,7 @@ int main(int argc, char ** argv) #endif
#ifdef _X11_ void * lib; + const char *err=NULL; #endif char ** myargv; @@ -69,7 +70,9 @@ int main(int argc, char ** argv) lib = dlopen (libname, RTLD_LAZY | RTLD_GLOBAL); if (lib == NULL) { + err=dlerror(); printf ("GLERROR: cannot access library %s\n", libname); + if(err!=NULL) printf("\t dlerror: %s\n", err); exit(1); } #endif
|