Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to solve "cannot open file 'LIBCD.lib' " in visual studio 2008?

trying to compile some code i downloaded, i get link error LNK1104: cannot open file 'LIBCD.lib'. i cant find this file anywhere on my computer. what is it, and can i download it from somewhere? is there another way to get the code to work?

like image 241
Sk Borhan Uddin Avatar asked Dec 27 '22 15:12

Sk Borhan Uddin


2 Answers

In my case, I only wrote "LIBCD.lib" in Configuration Properties -> Linker -> Input -> Ignore Specific Library

like image 98
fireb86 Avatar answered Mar 08 '23 07:03

fireb86


The first hit on Google for libcd says:

This file is the static library for the debug single threaded version of the C runtime. Visual Studio 2005 no longer supports this version of the C runtime: instead you need to use the multi-threaded version (libcmtd.lib) or the dynamically linked (DLL) version (msvcrtd.lib).

To fix this problem you will need to change the makefile that comes with GLUI to get it to use a different version of the library.

and some other things that might help you.

like image 35
fvu Avatar answered Mar 08 '23 07:03

fvu