- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There isn't anything I can suggest. The objects are not compatible.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page