![]() |
|
#1
|
|||
|
|||
|
LINK : fatal error LNK1104: cannot open file 'libcid.lib'
What does LINK : fatal error LNK1104: cannot open file 'libcid.lib' mean?
I am getting the error when compling in VC++ 7.1 |
|
#2
|
|||
|
|||
|
libcid.lib is the lib file for old iostream of VC++ 6. The VC++7 do not have because it uses Standard C++ library. You can search the text and delete the text: #pragma comment(lib, "libcid.lib") and change all #include old IOstream headers to new #include.
Ex: Old: #include <iostream.h> New: #include <iostream> // No .h Regards TQN |
|
#3
|
|||
|
|||
|
I don't think I've fully followed you TQN. I removed .h and just had <iostream> upon compiling it says such commands as endl and cout are undeclared identifiers.
|
|
#4
|
|||
|
|||
|
Sorry Nilrem. After #include..., you must add a line:
using namespace std; I think your project file ported from VC++6 to VC++7. Open your project file with a text editor, search "libcid.lib" and delete it. Good luck |
|
#5
|
|||
|
|||
|
Thanks TQN that worked a treat. No the project isn't ported over, is there any other big differences between these two version of VC++ that could cause me problems?
|
|
#6
|
||||
|
||||
|
Several differences in fact. With the introduction of Visual C++ .NET 2003 (VC++ 7.1) MS finally started to get their compiler closer to the C++ Standard. Is not there yet -specially in the template side of things- but is close. As you may expect, by doing that they also introduced a series of "breaking changes" and programs that used to compile with VC++ 6 or VC++ 7.0 won't necessarily compile with the newer version. The changes are in several areas and not just in the compiler itself. As TQN mentioned there are also changes in the standard, ATL and MFC libraries
For a list of issues check hxxp://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcedit/html/vcoriwhatsnewinvisualcnet2003.asp |
|
#7
|
|||
|
|||
|
Ahh, that's helpful, thanks a lot SheepShagger.
|
![]() |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how do you get a list of open file handles? | mokokan | General Discussion | 4 | 01-05-2006 01:55 |
| File: *.htz ? (how to open it) | hosiminh | General Discussion | 2 | 12-21-2004 06:17 |