Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 04-02-2004, 17:31
Nilrem
 
Posts: n/a
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
Reply With Quote
  #2  
Old 04-02-2004, 18:21
TQN TQN is offline
VIP
 
Join Date: Apr 2003
Location: Vietnam
Posts: 358
Rept. Given: 143
Rept. Rcvd 24 Times in 13 Posts
Thanks Given: 196
Thanks Rcvd at 168 Times in 51 Posts
TQN Reputation: 24
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
Reply With Quote
  #3  
Old 04-02-2004, 20:47
Nilrem
 
Posts: n/a
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.
Reply With Quote
  #4  
Old 04-03-2004, 10:43
TQN TQN is offline
VIP
 
Join Date: Apr 2003
Location: Vietnam
Posts: 358
Rept. Given: 143
Rept. Rcvd 24 Times in 13 Posts
Thanks Given: 196
Thanks Rcvd at 168 Times in 51 Posts
TQN Reputation: 24
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
Reply With Quote
  #5  
Old 04-03-2004, 19:37
Nilrem
 
Posts: n/a
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?
Reply With Quote
  #6  
Old 04-04-2004, 07:59
SheepShagger's Avatar
SheepShagger SheepShagger is offline
Friend
 
Join Date: Jan 2002
Location: UK
Posts: 58
Rept. Given: 2
Rept. Rcvd 6 Times in 1 Post
Thanks Given: 0
Thanks Rcvd at 0 Times in 0 Posts
SheepShagger Reputation: 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
Reply With Quote
  #7  
Old 04-04-2004, 23:17
Nilrem
 
Posts: n/a
Ahh, that's helpful, thanks a lot SheepShagger.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


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


All times are GMT +8. The time now is 23:35.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( Since 1998 )