[1422] | 1 | How to install intel compiler to work on cygwin at the command line:
|
---|
| 2 |
|
---|
| 3 | This is what I got from the following post on google:
|
---|
| 4 |
|
---|
| 5 | -----------------------------------------------------
|
---|
| 6 | All necessary paths and environment variables are set if you put the Microsoft linker path in ICL.CFG, and open the Intel
|
---|
| 7 | compiler command line window on the Start menu. Then you can run cygwin.bat so that bash inherits the ICL paths,
|
---|
| 8 | without breaking ICL. You will sometimes get the bash warning about finding Windows style paths in the environment,
|
---|
| 9 | but those are necessary for ICL and Microsoft link. Needless to say, the Windows environment variable forgetfulness
|
---|
| 10 | point will be reached sooner with this setup.
|
---|
| 11 |
|
---|
| 12 | After I run cygwin.bat, and try to run icl, it says:
|
---|
| 13 |
|
---|
| 14 | link: invalid option -- o
|
---|
| 15 | Try `ling --help' for more information.
|
---|
| 16 |
|
---|
| 17 | I verified that icl compiles without any problems before I run cygwin.bat
|
---|
| 18 |
|
---|
| 19 | What am I missing?
|
---|
| 20 |
|
---|
| 21 |
|
---|
| 22 |
|
---|
| 23 | This would indicate that you ignored my advice about icl.cfg, and so you are getting the wrong link.exe. It should have said "link" not "ling."
|
---|
| 24 | For a VC9 installation, /windows/C/Program Files/Intel/Compiler/11.1/026/bin/ia32/icl.cfg:
|
---|
| 25 | -Qlocation,link,"C:\Program Files\Microsoft Visual Studio 9.0\VC\bin"
|
---|
| 26 | -Qprec-div -Qprec-sqrt -Qansi_alias
|
---|
| 27 | ----------------------------------------------------------
|
---|
| 28 |
|
---|
| 29 |
|
---|
| 30 |
|
---|
| 31 |
|
---|
| 32 |
|
---|
| 33 | So here is what you do:
|
---|
| 34 | edit /cygdrive/c/IntelInstall/Compiler/11.1/026/bin/ia32/icl.cfg
|
---|
| 35 |
|
---|
| 36 | add:
|
---|
| 37 | -Qlocation,link,"C:\Program Files\Microsoft Visual Studio 9.0\VC\bin"
|
---|
| 38 | -Qprec-div -Qprec-sqrt -Qansi_alias
|
---|
| 39 |
|
---|
| 40 |
|
---|
| 41 | Then run the intel compiler command window. Go to C:\Cygwin and run Cygwin.bat.
|
---|
| 42 | you are now running cygwin with the correct paths.
|
---|
| 43 |
|
---|
| 44 |
|
---|
| 45 | To do:
|
---|
| 46 | figure out which environment varialbes have been set by intel, and replicate in a .bashrc.
|
---|
| 47 |
|
---|