Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

idb cannot find Library

Boris_B_
Beginner
382 Views
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.

0 Kudos
2 Replies
TimP
Honored Contributor III
382 Views
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.
0 Kudos
Boris_B_
Beginner
382 Views
Thank you. I had run ifortvars but not the idbvars. Running idbvars solved the problem.
0 Kudos
Reply