- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello ... first of all I am a total newbie so please be gental!
I am running a batch file which produces the following error message... link: fatal error lnk1181: cannot open input file msvcrt.lib
(see attachment for exact details of what I am doing)
It has been suggested that updating the LIB environment variable with the location of msvcrt.lib (C:Program FilesMicrosoft Visual Studio .NETVc7lib) should fix this but it doesn't...:robotsad: does anyone have any suggestions as to what I am doing wrong? Is there anything I need to restart once I have updated the system LIB variable?
As I said I am a total newbie so don't think I will have done the obvious...please provide a little background info if you get too technical.
Many thanks Pete.
PS if you need more details to answer properly just ask!
Message Edited by cen7pje@leeds.ac.uk on 04-26-2005 01:19 PM
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hmm. One problem I see is that you are explicitly linking to dformd.lib and dfport.lib. Those are CVF libraries not provided with Intel Fortran (and not compatible with it either.) I wonder if the message from the linker is naming the wrong file?
Another issue is that if you are linking to the DLL form of the libraries, you don't want msvcrt.lib.
My first approach would be to remove from the link line the libraries starting with msvcrt and through dfport. Then remove the -nodefaultlib switch. Try linking that way and see what happens.
Another issue is that if you are linking to the DLL form of the libraries, you don't want msvcrt.lib.
My first approach would be to remove from the link line the libraries starting with msvcrt and through dfport. Then remove the -nodefaultlib switch. Try linking that way and see what happens.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Steve - you have just melted my brain... but I can come back to that later...
To give you a little background the batch file is a beta add on provided by a software vendor. They did say that they only supported 8.0.050 and not 8.1. Would this alteryour statement that the CVF libraries are not compatiable with Intel Fortran, or does it mean just that, the CVF libraries are not compatiable with anyversion of intel fortran?
Many thanks for the prompt reply. I will have to ask more questions to fully understand your suggestions but first I'll have to do a bit (well alot)of background reading!
Cheers Pete.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It does not alter my statement. Any code that uses the CVF libraries df* must be recompiled by Intel Fortran in order to be used with Intel Fortran 8 - 8.0 or 8.1, it doesn't matter. Why they insist on 8.0.050 is beyond me...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Steve - Many thanks. we've now solved this problem... the default for the package the add on worked with (developed but the same company) was CVF. It took them two days to realise this and with a quick update of the regedit I'm around this problem.
I now have a seperate problem...:smileywink: but I'll put that under a new posting!
Cheers Pete
Message Edited by cen7pje@leeds.ac.uk on 04-27-2005 08:56 AM
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page