Home > glui32 lib link > glui32.lib link error

Glui32.lib Link Error

Contents

here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about opengl32.lib download Stack Overflow the company Business Learn more about hiring developers or posting ads with

Cannot Open Input File Opengl32 Lib

us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a windows sdk community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Linkage error with glui32.lib and libcd.lib on Visual Studio up vote 1 down vote favorite

Lnk2019

I am trying to port a (very) old project of mine from Visual Studio 6 to Visual Studio 2010. The project is an OpenGL application, and as such, it uses the following libraries (amongst others): glu32.lib glui32.lib glut32.lib opengl32.lib The glui32.lib library links the libcd.lib library, which is not supported on Visual Studio 2010. So I need to find a version of the glui32.lib library, which links the libcmtd.lib library glew instead. My questions are: Is there any such version of the glui32.lib library? If yes - where can I download it? If no - can I use the libcd.lib library on Visual Studio 2010? If yes - where can I download it? If no - is there any other way for me to solve this linkage error? UPDATE I'm leaving the answer below as the accepted one, but here is a workaround for porting an OpenGL project from Visual Studio 6 to Visual Studio 2010 (after creating the project in Visual Studio 2010): Right click the project and choose Properties. Open Configuration Properties --> C/C++ --> Preprocessor. In the Preprocessor Definitions entry, add GLUT_BUILDING_LIB. In the Runtime Library entry, choose Multi-threaded (/MT) or Multi-threaded Debug (/MTd). Open Configuration Properties --> Linker -->Input. In the Additional Dependencies entry, add glu32.lib;glui32.lib;glut32.lib;opengl32.lib. In the Ignore Specific Default Libraries entry, add libcd.lib. visual-studio opengl linkage share|improve this question edited Mar 20 '14 at 9:43 asked Feb 21 '14 at 21:17 barak manos 20.9k32462 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote accepted You can rebuild GLUI. The MSVS project they ship converts without issue to VS2010. You will have to point it at your GLUT build though. share|

how to installing glui on your windows system, before going to install the glui, the glut must be https://masdel.wordpress.com/2010/06/13/installing-glui-using-vc-on-windows/ installed first Download glui library from http://glui.sourceforge.net/ in the files section u will find the latest release version of glui Extract the zip file somewhere in http://www.busydevelopers.com/article/41647714/LINK+%3A+fatal+error+LNK1104%3A+cannot+open+file+'LIBCD.lib' ur disk, then open the glui-2.36 directory (i use glui-2.36 version) under src directory u will find msvc directory, then open glui.sln file. Convert the glui32.lib link solution (if needed) Converting the project solution into VC++ project Select the _glui library and build the library (the glui library will build static library, if u prefer with dnamic library than choose _gluidlllibrary) Select only glui library project Compiling After building the library, the lib file (glui32d.lib), glui32d.lib - ‘d' glui32.lib link error for debug, will be stored in the msvc\lib directory Put the glui3d.lib file into C:\Program Files\Microsoft Visual Studio 9.0\VC\lib directory and rename to glui32.lib Put the glui.h file into C:\Program Files\Microsoft Visual Studio 9.0\VC\include directory Open new project and create new project and try to compile this (http://www.mizuno.org/gl/bs/) glui code The compiled project Thats all Note : For VS 2010 users, the error below may be generated when compiling the library. error C2252: an explicit instantiation of a template can only occur at namespace scope Try this, Cut the corresponding block code and paste outside the class GLUIAPI GLUI_CommandLine definition #ifdef _MSC_VER // Explicit template instantiation needed for dll template class GLUIAPI std::allocator; template class GLUIAPI std::vector >; #endif Put #include after #include #include #include Build it as usual Rate this:Share this:FacebookTwitterGoogleEmailPrintMoreRedditPinterestTumblrLinkedInLike this:Like Loading... Related GLUIGLUTVS 2003VS 2005VS2010

Post navigation ← Installing GLUT fo

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 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. 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. I'm not sure what you mean, i've installed glui by putting the .h file and .lib file in the Visual studio directory, but i havent used a makefile that came with it. Will that be the problem? where should i put the makefile? 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 oup

 

Related content

No related pages.