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

Static Library build under XCode

Scott_F_1
Beginner
606 Views
I am attempting to create a static library using XCode 2.4 and Intel Fortran 9.1.032. The link stage fails with the following error:

dyld: Library not loaded: libifcor.dylib
Referenced from: /usr/bin/ifort-9.1-base/bin/fortcom
Reason: image not found
xilibtool: error: Fatal error in /usr/bin/ifort-9.1-base/fortcom

Is there some path setting I'm missing? I have added the line
DYLD_LIBRARY_PATH=/opt/intel/fc/9.1.032/lib
to my .bash_login file.

Scott Frasier
0 Kudos
2 Replies
Ron_Green
Moderator
606 Views

Scott,

Is that a typo for the library name? There is a "libifcore.dylib" but no such lib as "libifcor.dylib". If the error message is about a missing "libifcor.dylib" this may be an issue needing further attention.

Also, you should probably also add the following to your .bash_login

source /opt/intel/fc/9.1.032/bin/ifortvars.sh

Then check that LD_LIBRARY_PATH has the path to the /lib directory as well as DYLD_LIBRARY_PATH

ron

0 Kudos
Scott_F_1
Beginner
606 Views
Thanks Ron,
The typo was meant to be libifcore.dylib.

I have since installed 9.1.035 and the missing image is now libimf.dylib. The problem appears to be a bad path in whatever shell is running the command from the driver.

I have added the apprpriate ifortvars.sh to the .bash_login and have added the .csh to the .login file as well. It still doesn't work from XCode.

I have been able to execute the xilibtool command that the driver executes from XCode directly from a bash or tcsh terminal and it works fine.

Scott
0 Kudos
Reply