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

LNK1104 error

sang186
Beginner
2,011 Views

Hello,

I have been trying to compile my fortran project in Visual Studio 2008 and Intel Visual Fortran Compiler 11.1, but am getting the follwoing Link error.

Message 2 remark #5133: The input stream is empty D:\\Sangeetha\\Test1\\UNET\\Unet\\INITIBC.FOR 1

Message 7 remark #7784: Symbol in BLOCK DATA program unit is not in a COMMON block. [CCCWFILE] D:\\Sangeetha\\Test1\\UNET\\Unet\\cccw.h 5

Error 8 fatal error LNK1104: cannot open file 'dfor.lib' LINK

I cannot find any reference to dfor.lib in the code,and the properties of the LINKER for this project. Could please detail the problem and the solution.

Thanks and Regards,

Sangeetha

0 Kudos
8 Replies
Steven_L_Intel1
Employee
2,011 Views

You are linking in code that was compiled with Compaq Visual Fortran (or Digital Visual Fortran). Do a Build > Rebuild to rebuild all Fortran sources. Make sure you are not referencing any separate object or library files that were built by CVF.

I assume you are not asking for help with the other messages.

0 Kudos
sang186
Beginner
2,011 Views

Steve,

I did reference 9 object files. I am not sure if they were compiled using CVF. How do I check that ?At present I would like your help on the error msg only.

-Sangeetha

0 Kudos
Steven_L_Intel1
Employee
2,011 Views

It is likely that at least one of those objects was compiled with CVF. You could enable "verbose" linker messages (Properties > Linker > General > Show Progress > Display all progress messages. Then do a link again and look at the build log. Look for a line that says:

Processed /DEFAULTLIB:dfor.lib

That will tell you that at least one object was compiled with CVF/DVF. To figure out which one, you would have to search the .obj files for the string "dfor.lib". I suggest AgentRansack for this (the Windows search tool won't do it.)

0 Kudos
sang186
Beginner
2,011 Views

Dear Steve,

I have done as directed and all the nine object files that I have referenced contain dfor.lib. What should I do now to compile the code.

The files are as follows

1>module 'Skyget.obj' unsafe for SAFESEH image.

1>module 'Skyred.obj' unsafe for SAFESEH image.

1>module 'Skymgt.obj' unsafe for SAFESEH image.

1>module 'Sky0.obj' unsafe for SAFESEH image.

1>module 'Skysol.obj' unsafe for SAFESEH image.

1>module 'Skycgt.obj' unsafe for SAFESEH image.

1>module 'Skympt.obj' unsafe for SAFESEH image.

1>module 'Skycpt.obj' unsafe for SAFESEH image.

1>module 'Skyput.obj' unsafe for SAFESEH image.

Thanks

-Sangeetha

0 Kudos
Steven_L_Intel1
Employee
2,011 Views
You will have to locate the Fortran sources for those objects and recompile them with Intel Fortran.
0 Kudos
sang186
Beginner
2,011 Views

Dear Steve,

Thanks for the tech support. I'll locate the source files and compile them with the project. I'll come back if the problem still persists.

Thanks and Regards,

Sangeetha

0 Kudos
cinculet
Beginner
2,011 Views

Hi Steve,

I'm having the same issue with a library previously compiled in CVF, thing is I don't have access to the source code any more to recompile it in Intel Visual Fortran...

Any recommendations?

Thanks,

Clay

0 Kudos
Steven_L_Intel1
Employee
2,011 Views

There isn't anything I can suggest. The objects are not compatible.

0 Kudos
Reply