If you are compiling under HP-UX, you can check with the program below if the shared library is loadable. If libtclutil.sl on HP-UX is not properly built you get the misleading error message "Not enough memory".
#include <dl.h> #include <errno.h> #include <stdio.h> main(int argc, char *argv[]) { shl_t handle; handle = shl_load(argv[1], BIND_IMMEDIATE | BIND_VERBOSE, 0L); if (handle == 0) { printf("shl_load failed %s\n", argv[1]); perror(""); } else printf("shl_load ok\n"); }
Please send questions or comments to abrighto@eso.org.
Copyright © 1998 ESO - European Southern Observatory