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

Problem linking fortran files

vidhya_s_
Beginner
6,803 Views

Hello everyone,

I  am using intel fortran compiler XE 2013 SP1. I have a set of fortran files while needs to be compiled and get output as .exe. I tried running this on command prompt from Start>All programs>Intel parallel studio XE 2013>Command Prompt> Parallel studio XE with Intel compilers> IA-32 Visual studio 2013 mode. The set of fortran files i need to compiler are in C:\Users\Dosuments folder. When i try to compile and link usinf 'ifort' command, the command creates object files but fails to link showing 'fatal error LNK1104: cannot open file C:\Users\Amanda\lnk(430A554-382D-419E-A489-499AB3D95F897.tmp). A copy of what i have done is attached along with it. Please help me with the problem.

0 Kudos
1 Solution
Steven_L_Intel1
Employee
6,765 Views

Create a folder C:\Temp

In the Windows start menu or search box, search for "environment" (wothout the quotes). When you see an entry "Edit environment variables for your account", select that.

You will see two boxes, the top box has a list of "User variables for <your account name>. If TEMP is listed there, double-click on it to bring up the edit box. Change the Variable value to "C:\Temp" (again, no quotes).  Click OK and then OK again.

Now open a new Fortran command prompt window and try again.

View solution in original post

0 Kudos
26 Replies
vidhya_s_
Beginner
1,163 Views

Hi i am really sorry. i will give you entire fortran file. Please try to help me solve this. Thank you

Regards

Vidhya

0 Kudos
mecej4
Honored Contributor III
1,163 Views

I can reproduce the access error that you mentioned in #11. However, that is not interesting because it is the outcome of array bounds being overrun earlier. To see this for yourself, recompile with the /traceback /check options and run.

You will see that on line 144 of file ElasticMatching.f90 you try to refer to w(:,:) with a second index value (=19729) that exceeds the upper bound of the second dimension of w, which was allocated with (3,19728).

You will have to go through the code to make sure that the arrays are allocated with sufficient extents to cover their intended usage.

0 Kudos
vidhya_s_
Beginner
1,163 Views

hi

Thanks for the reply. i had a look t it. i understand what the problem is but how do i change it. can i try w(0) - w(1) from line 144 then w(2) -w(3) in the later line. do you think it will work. i tried by changing it was showing me access violation error again. kindly help me. Thanks

Regards

Vidhya

0 Kudos
mecej4
Honored Contributor III
1,163 Views

vidhya s. wrote:
i understand what the problem is but how do i change it. can i try w(0) - w(1) from line 144 then w(2) -w(3) in the later line. do you think it will work. i tried by changing it was showing me access violation error again. kindly help me.
0 Kudos
vidhya_s_
Beginner
1,163 Views

Hi

I tried by replacing the line 144 in ElasticMatching w(3,N1) with w(3,N1+1). i got the iteration number then later it displayed windows stopped working. The Picture of which i have attached below. Kindly have a look. Thank you

Regards

Vidhya

 

0 Kudos
mecej4
Honored Contributor III
1,163 Views

I deplore making arbitrary changes to code with the hope that these changes will cure serious problems that have not yet been understood.

Sorry, I have nothing more to contribute to this thread.

0 Kudos
Reply