Loading...
You are not logged-in Login/Register





  • Posts   Search Threads
  • swillmonDecember 15, 2011 9:02 AM PST   
    Setting environment variables in XCode4.2

    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!

    Gennady Fedorov (Intel)December 15, 2011 7:11 PM PST
    Rate
     
    Setting environment variables in XCode4.2

    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 
    will sets environment variables for the Intel® 64 architecture.
    --Gennady


    swillmonDecember 16, 2011 7:11 AM PST
    Rate
     
    Setting environment variables in XCode4.2

    Got it - but now I'm getting a build error: "unable to open 'lpthread'."


Forum jump:  

Intel Software Network Forums Statistics

17,025 users have contributed to 48,319 threads and 172,758 posts to date.

In the past 24 hours, we have 11 new thread(s) 54 new posts(s), and 47 new user(s).

In the past 3 days, the most popular thread for everyone has been Optimalization of sine function\'s taylor expansion The most posts were made to Most likely, the issue is that The post with the most views is Optimalization of sine function\'s taylor expansion

Please welcome our newest member redfruit83


For more complete information about compiler optimizations, see our Optimization Notice.