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

Using Visual Fortran Compiler 11.1 to compile a 9.1 project

bew_
Beginner
1,145 Views

Hi

I am trying to compile a Fortran project that comes with a CFD software. In the software manual, it asks for the project to be modified in Visual studio 2005 with Intel visul fortran 9.1 integrated.

On my machine, i have Windows 7, Visual studio 2005 and I also have integrated the IVF 11.1 successfully. However, when I tried to compile the project I got tons of errors for example:

1>presit_p.obj : error LNK2019: unresolved external symbol _ARRAYS_MODULE_mp_P referenced in function L_PRESIT_P_97__par_loop0

1>mrtcal.obj : error LNK2001: unresolved external symbol _ARRAYS_MODULE_mp_P

1>corgas.obj : error LNK2001: unresolved external symbol _ARRAYS_MODULE_mp_P

1>cdfin.obj : error LNK2001: unresolved external symbol _ARRAYS_MODULE_mp_P

1>chout3.obj : error LNK2001: unresolved external symbol _ARRAYS_MODULE_mp_P

1>spoutp.obj : error LNK2001: unresolved external symbol _ARRAYS_MODULE_mp_P

Is this the problem of using different version of IVF? or is it the problem with using the product on Windows 7? What should I do to solve the problem?

Thank you

0 Kudos
7 Replies
Steven_L_Intel1
Employee
1,145 Views
I suspect you are encountering the remains of a bug in the older versions of the Intel compiler. If you do a "rebuild", so that ARRAYS_MODULE gets recompiled, it should work. If not, let us know.
0 Kudos
bew_
Beginner
1,145 Views
Steve,

I tried rebuild but unfortunately it didn't solve the problem. Are there updates or something that i need to install, other than the IVFC 11.1 itself? Also, I ambuilding a 64-bit solution.

Thank you
Bo
0 Kudos
Steven_L_Intel1
Employee
1,145 Views
I think you still have some 32-bit code being linked in. You should not need any additional updates. If you want me to look at it closer, do a Build > Clean, then create a ZIP of the project and attach it to a reply here. You can also request help through Intel Premier Support.
0 Kudos
bew_
Beginner
1,145 Views
ohh so you think it's a problem with the code? I will have to contact the software's tech support then. I can distribute the project. Just to make sure... is there any special setting I need during installation or before building a 64bit project other than installing the "X64 Compiler and Tools" for the VS2005?
0 Kudos
Steven_L_Intel1
Employee
1,145 Views
I believe it is a problem with the project configuration rather than the code itself. But having the code would help me reproduce the problem.

Yes, to build a 64-bit project you have to do Build > Configuration Manager and add an x64 configuration to your project. If you see "Win32" displayed in the VS toolbar you are using a 32-bit build.

Can you at least attach the buildlog.htm after a full rebuild that fails? Are you rebuilding ALL modules the application uses? Your talk about a "vendor" makes me wonder if you have .mod files for which you have no sources.
0 Kudos
mecej4
Honored Contributor III
1,145 Views
Please look at your project and establish that we may dismiss the following two suspicions that the error messages raised in my mind.

A. If your compiler options do not include the /C option, the compiler tries to link the .OBJ file after each source file is compiled. Naturally, there are missing externals.

B. Presumably, module ARRAYS_MODULE.mod is needed to compile most of your source files. If, however, arrays.obj (or whatever is the name of the corresponding .OBJ file) is not included in the link command, there will be a large number of missing externals.
0 Kudos
bew_
Beginner
1,145 Views
Hi,

Thank you Steve and mecej4. I have checked in the project properties Fortran->Command Lineand found that /c is included (not sure if i looked for it at the right place)

I have no idea what went wrong. Anyway, after struggling fora whole week now, Ifinally managed to download andinstall IVF 9.1 as recommended by the software provider and it works. So... well I think i'llstick with what i have fornow.

Thank you so much again for all your help.
0 Kudos
Reply