Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Link invalid option issue

Thomas_Folegot
Beginner
1,709 Views
I've been trying to install a Fortran code. This code is supposed to be compatible with Interl Fortran, but the Makefiles are wrtitten for MacOS, whereas I'm trying to compile on Windows XP. I'm running Visual Fortran Compiler 11.1.051 launched from the Cygwin window.

I already compiled the library into the directory D:/users/misc/
Now, I've been trying to compile codes into the D:/users/global directory. The original Makefile uses the -L and -l options: -L../misc and -lmisc that I converted for Windows by adding the D:/users/misc path into the environment variable LIB.
The command is the following:
toasc.exe: toasc.f90
ifort /O3 /nologo /Ob2 /assume:byterecl /threads /heap-arrays /include:D:/users/misc /Qparallel /exe:tasc.exe toasc.f90

The compiler produce the toasc.obj without complaining but replies the following error:
Link invalid option --o.

Thanks in advance for your help.





0 Kudos
3 Replies
TimP
Honored Contributor III
1,709 Views
Quoting - Thomas Folegot

Link invalid option --o.




This looks as if a link.exe other than Microsoft's appears on your PATH. If so, specifying /Qlocation should work:
$ cat ia32/ifort.cfg
# This Configuration file may be used for additional switches
-Qlocation,link,"C:Program FilesMicrosoft Visual Studio 9.0VCbin"
-assume:minus0,protect_parens,buffered_io,byterecl
-Qprec-div -Qprec-sqrt

For intel64ifort.cfg, use the AMD64bin.
0 Kudos
Thomas_Folegot
Beginner
1,709 Views
Quoting - tim18
Quoting - Thomas Folegot

Link invalid option --o.




This looks as if a link.exe other than Microsoft's appears on your PATH. If so, specifying /Qlocation should work:
$ cat ia32/ifort.cfg
# This Configuration file may be used for additional switches
-Qlocation,link,"C:Program FilesMicrosoft Visual Studio 9.0VCbin"
-assume:minus0,protect_parens,buffered_io,byterecl
-Qprec-div -Qprec-sqrt

For intel64ifort.cfg, use the AMD64bin.

Thanks Tim for your help.
Now I have an error1 ...
What is the equivalent of -L on Windows ?
0 Kudos
Thomas_Folegot
Beginner
1,709 Views
Quoting - Thomas Folegot

Thanks Tim for your help.
Now I have an error1 ...
What is the equivalent of -L on Windows ?

Its works now, no pb.
Thanks again for your help.
Thomas.
0 Kudos
Reply