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
链接已复制
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.
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.)
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
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
