Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Command line linker problem

michael_green
Beginner
504 Views

I'm fairly new to command line work, so I may be doing something stupid ...

I have set up a test .bat file (see attached) to do something that works perfectly well in Visual Sudio. I have copied a line from the project properties/fortran command line and added "ifort" and source file names:

ifort buffer.f90 /compile_only /dll /nologo /module:"Release/" /object:"Release/" /libs:static /threads /c

and that seems to work.

Then I have copied a line from the project properties/linker command line:

/OUT:"Release/buffer.dll" /INCREMENTAL:NO /NOLOGO /MANIFEST /MANIFESTFILE:"K:371-Forest Management BranchFMIS devSourceVF FMISFMISDLL sourceuffer eleaseuffer.dll.intermediate.manifest" /SUBSYSTEM:WINDOWS /IMPLIB:"Release/buffer.lib" /DLL kernel32.lib

and have added paths for a static library and the object file to be linked - this does not work.The linker doesn't even recognise the /MANIFEST or /MANIFESTFILE switchesand ignores them (what are they for anyway? ). Finally, I persistenly get errors LNK2019 and LNK2001 with the message that ___intel_f2int cannot be found and is referenced in a routine buried in the static libary. What could the problem be when the library built perfectly well in Visual Studio? I have to admit I don't understand linking, especially in IVF10/VS2005, a very new environment for me. Please could someone enlighted me.

With many thanks in advance

Mike

0 Kudos
1 Reply
Steven_L_Intel1
Employee
504 Views
You are invoking an ifortvars.bat file from version 8.0, probably referencing a VS2003 or 2002 linker. You want to use the one in your 10.x install instead. For example:

call "C:Program FilesIntelCompilerFortran10.1.021IA32Binifortvars.bat"
0 Kudos
Reply