Click to See Complete Forum and Search --> : libcid.lib
vtgyrlz619
May 18th, 2004, 11:07 PM
Hi I'm using Visual C++ with OpenGL and I get this error
fatal error LNK1104: cannot open file 'libcid.lib'
how do I fix it?
It compiles fine, I think it's a run time error.
Please help, thanks
wien
May 19th, 2004, 12:05 PM
That is not a run-time error, but a linker error, meaning your application didn't compile either.
According to MSDN (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/HTML/_core_c_run.2d.time_debug_libraries.asp), LIBCID.LIB is where the old non-standard iostream libraries reside. Are you including <iostream.h>, <ios.h> or any other similar non-standard header?
vtgyrlz619
May 26th, 2004, 02:33 AM
sorry it took so long to reply, but yes I am using <iostream.h>
how would i fix this, I have successfully compiled and executed programs where I use <iostream.h> before.. why does it give me this error now?
Please help, thanks
-Kathy
wien
May 27th, 2004, 09:38 AM
As to why the compiler isn't linking the library, I'm not sure. It should do that automatically when including the header. Are you sure the file hasn't been deleted or something? If it's still there, try linking it to your project manually.
The best thing to do however, is to stop using the non-standard headers ending with .h. These headers are deprecated, and should not be used at all. The only reason they are there, is for backwards-compabillity. You should include <iostream> instead. (Note no .h)
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.