- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am trying to produce an executable of the usual "Hello world!" program below using the Intel Fortran 11.0.072 compiler.
program test
print *, 'Hello world!!!'
stop
end
print *, 'Hello world!!!'
stop
end
The environment being used is the small Unix MSYS/MinGW environment which is installed under x64 Vista Ultimate on a Xeon chip. Microsoft Visual Studio 2008 is also installed. Other Fortran compilers thrive in this environment.
The results when trying to compile and link the Fortran code are:
[msys] /home/bill/Temp> ifort -o test.ext test.f
Intel Visual Fortran Compiler Professional for applications running on IA-32, Version 11.0 Build 20090131 Package ID: w_cprof_p_11.0.072
Copyright (C) 1985-2009 Intel Corporation. All rights reserved.
Microsoft Incremental Linker Version 9.00.21022.08
Copyright (C) Microsoft Corporation. All rights reserved.
-out:test.ext
-subsystem:console
test.obj
LINK : fatal error LNK1104: cannot open file 'ifconsol.lib'
Intel Visual Fortran Compiler Professional for applications running on IA-32, Version 11.0 Build 20090131 Package ID: w_cprof_p_11.0.072
Copyright (C) 1985-2009 Intel Corporation. All rights reserved.
Microsoft Incremental Linker Version 9.00.21022.08
Copyright (C) Microsoft Corporation. All rights reserved.
-out:test.ext
-subsystem:console
test.obj
LINK : fatal error LNK1104: cannot open file 'ifconsol.lib'
This is very strange because this library is in the PATH and LIB variables.
[msys] /home/bill/Temp> which ifconsol.lib
/e/Intel-Fortran-11.0/Intel/Compiler/11.0/072/fortran/lib/ia32/ifconsol.lib
/e/Intel-Fortran-11.0/Intel/Compiler/11.0/072/fortran/lib/ia32/ifconsol.lib
[msys] /home/bill/Temp> echo $LIB
E:\Intel-Fortran-11.0\Intel\Compiler\11.0\072\fortran\lib\ia32:/e/Microsoft Visual Studio 9.0/VC/lib
E:\Intel-Fortran-11.0\Intel\Compiler\11.0\072\fortran\lib\ia32:/e/Microsoft Visual Studio 9.0/VC/lib
Can someone please help me to find a solution to this problem? Thanks.
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - wteeters
[msys] /home/bill/Temp> ifort -o test.ext test.f
Intel Visual Fortran Compiler Professional for applications running on IA-32, Version 11.0 Build 20090131 Package ID: w_cprof_p_11.0.072
Copyright (C) 1985-2009 Intel Corporation. All rights reserved.
Microsoft Incremental Linker Version 9.00.21022.08
Copyright (C) Microsoft Corporation. All rights reserved.
-out:test.ext
-subsystem:console
test.obj
LINK : fatal error LNK1104: cannot open file 'ifconsol.lib'
Copyright (C) 1985-2009 Intel Corporation. All rights reserved.
Microsoft Incremental Linker Version 9.00.21022.08
Copyright (C) Microsoft Corporation. All rights reserved.
-out:test.ext
-subsystem:console
test.obj
LINK : fatal error LNK1104: cannot open file 'ifconsol.lib'
This is very strange because this library is in the PATH and LIB variables.
[msys] /home/bill/Temp> which ifconsol.lib
/e/Intel-Fortran-11.0/Intel/Compiler/11.0/072/fortran/lib/ia32/ifconsol.lib
/e/Intel-Fortran-11.0/Intel/Compiler/11.0/072/fortran/lib/ia32/ifconsol.lib
[msys] /home/bill/Temp> echo $LIB
E:Intel-Fortran-11.0IntelCompiler11.072fortranlibia32:/e/Microsoft Visual Studio 9.0/VC/lib
E:Intel-Fortran-11.0IntelCompiler11.072fortranlibia32:/e/Microsoft Visual Studio 9.0/VC/lib
Microsoft link doesn't understand the forward slashed paths.
I don't know whether msys (which some say is an obsolete fork from cygwin) behaves the same as cygwin. With cygwin, if you first open the ifort command window from the start menu, then execute the .bat file which starts up the new shell, you avoid this problem. You may need then to add the Microsoft linker path in ifort.cfg.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You should not have to add the linker path in ifort.cfg - that isn't needed at all. Why it's there is a mystery to me.
It might be useful to add "-link -verbose" to the end of the ifort command line to see what the linker is seeing. I'm not at all familiar with this environment.
It might be useful to add "-link -verbose" to the end of the ifort command line to see what the linker is seeing. I'm not at all familiar with this environment.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - Steve Lionel (Intel)
You should not have to add the linker path in ifort.cfg - that isn't needed at all. Why it's there is a mystery to me.
It might be useful to add "-link -verbose" to the end of the ifort command line to see what the linker is seeing. I'm not at all familiar with this environment.
It might be useful to add "-link -verbose" to the end of the ifort command line to see what the linker is seeing. I'm not at all familiar with this environment.
The multiple build environment case isn't supported by ifort, but there's usually a way to make it work so that ifort doesn't get sidetracked by the other environment.
There's also a possibility, when the library path is set up to the liking of Microsoft link, that the "foreign" shell will warn about the presence of the backslashed paths which we need for ifort/link.

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