- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My Fortran program uses Lapack:
$ ifort -r8 -c -g prog.f sub.f
$ ifort -r8 -g prog.o sub.o -lmkl_lapack -lmkl_ia32 -lguide
$ a.out
runs just fine, and so does
$ gdb a.out
(gdb) run
but
$ idb a.out
(idb) run
bombs with message:
dyld: Library not loaded: libguide.dylib
Referenced from: a.out
Reason: image not found
Please help.
$ ifort -r8 -c -g prog.f sub.f
$ ifort -r8 -g prog.o sub.o -lmkl_lapack -lmkl_ia32 -lguide
$ a.out
runs just fine, and so does
$ gdb a.out
(gdb) run
but
$ idb a.out
(idb) run
bombs with message:
dyld: Library not loaded: libguide.dylib
Referenced from: a.out
Reason: image not found
Please help.
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
libguide should be found if you have set the ifort environment variables. In general, foridb, you would need to set both the idb and the compiler environment (e.g.by idbvars and ifortvars scripts). Perhaps your environment variables have become unset since you ran the first cases successfully.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you. I had run ifortvars but not the idbvars. Running idbvars solved the problem.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page