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_
Débutant
1 019 Visites
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 Compliments
2 Réponses
TimP
Contributeur émérite III
1 019 Visites
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 Compliments
Boris_B_
Débutant
1 019 Visites
Thank you. I had run ifortvars but not the idbvars. Running idbvars solved the problem.
0 Compliments
Répondre