Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
6623 Discussions

Setting environment variables in XCode4.2

swillmon
Beginner
150 Views
My Intel FORTRAN compiler (Composer XE 2011 SP1.7.246) works like a champ for basic programs using XCode4.1, but I can't figure out how to get the environment variables set so that I can link to MKL libraries. It appears as if the $MKLROOT environment variable isn't set because I'm getting 'file not found' errors when I attempt to build a project that utilizes MKL routines. Everything works fine when I compile my program using the terminal window - but I'd really like to use XCode during the write/debug phase. Any help would be greatly appreciated!
0 Kudos
2 Replies
Gennady_F_Intel
Moderator
150 Views
Swillmon,
choose the script mklvars.sh or mklvars.csh ( see "bin" folder). These scripts accept parameters like Architecture. You need to specify it first. For example, the command
mklvars.sh intel64
willsets environment variables for the Intel 64 architecture.
--Gennady
swillmon
Beginner
150 Views
Got it - but now I'm getting a build error: "unable to open 'lpthread'."
Reply