link error

Post Reply
Theoster200
Posts: 2
Joined: Fri Feb 17, 2012 10:21 pm

link error

Post by Theoster200 »

Code: Select all

1>LINK : fatal error LNK1181: cannot open input file '..\..\lib\Debug\OpenGLSupport_Debug.lib'
when i try to do a demo this pop up.

i tried switching the runtime libary but that dint work.

i think i did the installation correct.
kloplop321
Posts: 55
Joined: Sun Jan 01, 2012 7:37 pm

Re: link error

Post by kloplop321 »

You need to have OpenGLSupport_Debug.lib in the location ..\..\lib\Debug\OpenGLSupport_Debug.lib

You did not configure the visual studio project correctly with cmake.
Theoster200
Posts: 2
Joined: Fri Feb 17, 2012 10:21 pm

Re: link error

Post by Theoster200 »

Well i am confiuring everything correct i click cmake-gui then i select where i saved bullet-2.79-rev2440, then i click bullet-2.79and that is the folder where it gets everything. then output i just have in Microsoft visual c++ 2008 express edition in a folder i named bullet.
i configure with visual 9 2008 works then in the box below it comes up with this

Code: Select all

Check for working C compiler using: Visual Studio 9 2008
Check for working C compiler using: Visual Studio 9 2008 -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working CXX compiler using: Visual Studio 9 2008
Check for working CXX compiler using: Visual Studio 9 2008 -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
CMAKE_EXE_LINKER_FLAGS_DEBUG=/INCREMENTAL:NO /debug 
OPENGL FOUND
glu32opengl32
WARNING: you are using the obsolete 'GLU' package, please use 'OpenGL' instead
Win32 using Glut/glut32.lib
WARNING: you are using the obsolete 'GLU' package, please use 'OpenGL' instead
Configuring done
i have everything selected like it shows in the install directions i click generate does it. since im just trying out demos right now i jsut go straight to the demos in the bullet folder i mentioned earlier. then i debug it right away and it comes up with the same error as the first one ive redone this several times(5)

I even tried a older version
chriemmy
Posts: 1
Joined: Wed May 07, 2014 10:22 am

Re: link error

Post by chriemmy »

Project "BULLET_PHYSICS.sln" has to be compiled first. That will generate OpenGLSupport_Debug.lib.
Basroil
Posts: 463
Joined: Fri Nov 30, 2012 4:50 am

Re: link error

Post by Basroil »

Aside from checking if the library exists in the first place, are you sure you terminated all brackets correctly? VS tends to fail at linking if you forget a closing bracket in your code. Easy way to check is to see if intellisense puts the right colors on everything. If suddenly your text is all plain, you're definitely missing a bracket.
Post Reply