Hello,
I am trying to migrate with my research code from Linux HPC cluster to 64-bit Windows (changed job recently and got a new PC).
The code is a set of Matlab and Fortran subroutines, which also call stand-alone NAG Fortran library. It all worked well in the old configuration with pgf90 compiler and Mark21 NAG library under Linux.
Now I have Mark23 NAG library and Intel 64 Visual Studio, of which I use 'ifort' in command line.
In my Makefile, the compilation lines are as follows:
LIBDIR = 'C:/Program Files/NAG/FL23/flw6i23dcl/bin/' LIBNAME = FLW6I23DC_nag.dll
OBJS1 = myprog.f ukf.f OBJS2 = contour.f cdens_subr.f potfit_subr.f
myprog: $(OBJS1)
$(FC) $(OBJS1) $(LIBDIR)$(LIBNAME)
When I run the package (via Matlab envelope code), I get the following error message:
------------------------------------
ifort myprog.f ukf.f 'C:/Program Files/NAG/FL23/flw6i23dcl/bin/'FLW6I23DC_nag.dll
Intel(R) Visual Fortran Intel(R) 64 Compiler XE for applications running on Intel(R) 64, Version 13.0.0.089 Build 20120731
Copyright (C) 1985-2012 Intel Corporation. All rights reserved.
ifort: command line warning #10161: unrecognized source type 'C:/Program Files/NAG/FL23/flw6i23dcl/bin/FLW6I23DC_nag.dll'; object file assumed
ipo: warning #11010: file format not recognized for C:/Program Files/NAG/FL23/flw6i23dcl/bin/FLW6I23DC_nag.dll
link: unknown option -- s
Try `link --help' for more information.
Makefile:15: recipe for target `myprog' failed
make: *** [myprog] Error 1
---------------------
I also tried static library from the same Mark23, and it did not work either. Not to mention that I tried 'nagfor' compiler before that - I managed to obtain an executable, but it crashed at call saying about division by zero (which did not happen with 'pgf90').
I would be very grateful if you advised how to resolve the compilation issue with 'ifort'.
Thank you
Valerie Livina



