HI, I'm trying to install GLUI to work
with Visual Studio 2005, i'm just trying to run one of the examples but
i keep getting this error:
LINK : fatal error LNK1104: cannot open file 'LIBCD.lib'
the only reference i could find to it was in a microsoft help page but it said the bug had been fixed in an eariler version.
Any help would be great.
Cheers
LINK : fatal error LNK1104: cannot open file 'LIBCD.lib'
the only reference i could find to it was in a microsoft help page but it said the bug had been fixed in an eariler version.
Any help would be great.
Cheers

LINK : fatal error LNK1104: cannot open file 'LIBCD.lib'
bas31
Workaround of ignoring specific library is also not working.
Can any one provide better & proven workaround
Thanks in advance..
Aithal.
Eric Charran
Sorry to hear It doesn't work, but I am not sure what you mean. Do you mean it doesn't ignore the library, or it doesn't solve your linking problems
I had similar problems to yours (LIBCD.lib) while trying to link a ported GNU library, GSL.
My linking problems stopped when I changed the Runtime Library to : Multi-threaded /Mtd instead of the default Multithreaded DLL.
Ignoring a specific library was possible the way I mentioned, but it didn't solve my problem.
PeterR1
Hi, t-965,
I think i'm trying to do the same thing with you.
what previous answers are all right.
you need to go:
Project Property Pages -> configureation Properties -> Linker -> Input ->
you'll see on right hand a list of options, one of which:
"Ignore Specific Library": you type in exactly: LIBCD
that will do it.
JLP
case23_69
Tiago Tavares
You can fix this from the project settings. You need to add the /NODEFAULTLIB to the linker settings:
http://msdn.microsoft.com/library/default.asp url=/library/en-us/vccore/html/_core_.2f.nodefaultlib.asp
This option will make the linker ignore all the /DEFAULTLIB directives - this will remove the dependency on libcd.lib. Unfortunately it will remove all the other dependencies as well so you will need to explicitly add the libraries you do need (like glut32.lib etc.) as inputs to the linker.
JimJulson
To get this error message you must be building a project: and something in the build process for the project is telling Visual Studio 2005 that it needs libcd.lib - this can either be in the project settings, in a makefile, or via an embedded linker directive in some object file (*.obj) or a library (*.lib).
You need to track down where dependency on libcd.lib is coming from - this is pretty straightforward for the first two cases. For the third case you may need to pass the /verbose switch to the linker and then look through the ouput to see where the dependency on libcd.lib is coming from.
Ruthc
Try to set:
Ignore specific Library in Linker instead of Igonre All Default Library
Then, all problems should be solved.
venkateswarlu
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.
Ben Lam97757
Ok, I've passed the /verbose switch into the linker and the only reference was:
Linking... Starting pass 1 Processed /DEFAULTLIB:msvcprtd Processed /DEFAULTLIB:winmm.lib Processed /DEFAULTLIB:opengl32.lib Processed /DEFAULTLIB:glu32.lib Processed /DEFAULTLIB:glut32.lib Processed /DEFAULTLIB:glui32.lib Processed /DEFAULTLIB:MSVCRTD Processed /DEFAULTLIB:OLDNAMES Searching libraries Searching C:\Program Files\Microsoft Visual Studio 8\VC\lib\glui32.lib: Found "public: void __thiscall GLUI_Master_Object::set_glutIdleFunc(void (__cdecl*)(void))" ( set_glutIdleFunc@GLUI_Master_Object@@QAEXP6AXXZ@Z) Referenced in main.obj Loaded glui32.lib(glui.obj) Processed /DEFAULTLIB:LIBCD ...Does this mean its a problem with the glui32.lib file because i have no idea how to edit it (or even where to find the problem)
Cheers
castanza
Mike Glaser
I am having the same problem, actually.
I know it's a long time later but I would like to say that I can't just ignore LIBCD.lib as suggested.
This always results in numerous unresolved external symbols.
Here are the errors I get when I tried what you suggested:
main.obj : error LNK2019: unresolved external symbol __RTC_CheckEsp referenced in function _main
main.obj : error LNK2001: unresolved external symbol __RTC_Shutdown
main.obj : error LNK2001: unresolved external symbol __RTC_InitBase
main.obj : error LNK2001: unresolved external symbol __fltused
LINK : error LNK2001: unresolved external symbol _mainCRTStartup
No matter what I've tried, I haven't been able to get glui or glut working.
Jason Paige
sangee
Hello Moderator,
I would really appreciate if you will provide me with the GLUI that works with Visual Studio 2005 Pro. I been trying out many ways but in vain.
Thanks,
-t
Scire
Hi,
You can ignore a specific library by going to Project Properties->Linker->Input->Ignore Specific Library
Enter the one you wish to ignore there.