- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I run: (Win 7 startbutton)
Intel Parallel Sudio XE 2011/Command Prompt/Parallel Studio XE with Intel Compiler XE v12.0 Update 4/IA-32 Visual Studio 2010 mode
I look environnment vairiable
C:\\Program Files (x86)\\Intel\\ComposerXE-2011>set VCINSTALLDIR
VCINSTALLDIR=c:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\
and start cygwin
C:\\Program Files (x86)\\Intel\\ComposerXE-2011>C:\\Cygwin\\Cygwin.bat
At cygwin home I have a .bash_profile
$ more .bash_profile
alias ifort='ifort -Qlocation,link,"$VCINSTALLDIR/bin"'
alias icl='icl -Qlocation,link,"$VCINSTALLDIR/bin"'
and verify alias
$ alias
alias icl='icl -Qlocation,link,"$VCINSTALLDIR/bin"'
'lias ifort='ifort -Qlocation,link,"$VCINSTALLDIR/bin"
alias mc='. /usr/share/mc/bin/mc-wrapper.sh'
I would compile minimalist code
$ dir mini*
minimalist.f90
$ more minimalist.f90
PROGRAM MINIMALIST
WRITE(*,*)"PROGRAM MINIMALIST"
END PROGRAM MINIMALIST
Now I execute ifort command:
$ ifort minimalist.f90
Intel Visual Fortran Compiler XE for applications running on IA-32, Version 12.0.4.196 Build 20110427
Copyright (C) 1985-2011 Intel Corporation. All rights reserved.
'fort: error #10036: unable to run 'c:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\\\bin
$ dir mini*
minimalist.f90 minimalist.obj
I have a compilation ( minimalist.obj ) but ifort not create executable ?
Where is the probleme ? What is the solution ?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You must be more careful about your spelling and quoting of the path to the folder which includes Microsoft link. Rather than attempting to include options in an alias, why not put them in ifort.cfg and icl.cfg ? That would avoid having to deal with specification of Windows shell paths for this purpose in bash. Note that ifort takes no notice of your starting it from bash; it still uses cmd path syntax to find link.exe.
If you start cygwin.bat inside the Intel compiler cmd shell window, it's relatively easy. If you prefer something more difficult, don't assume we can guess your preference.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
X:\ > path %path%;c:\cygwin\usr\bin
That way, the Cygwin utilities are used only if a Windows program of the same name does not exist. A prominent example is link.exe, which has completely different purposes in the two environments. The Cygwin shell also filters some built-in commands from CMD.EXE, such as time, which conflict with Cygwin commands.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page