views:

59

answers:

1

hi,

I'm trying to run an opengl application in vs 2008 but the compiler keeps throwing me the error:

Error 1 fatal error LNK1104: cannot open file 'C:\Documents.obj'

,and everything I've tryed doesn't do the trick , so any indication would be very appreciated !

+2  A: 

That looks like a truncation of "c:\Documents and settings" - are you referring to something in that path without using quotes?

Matt Breckon
in the source code no , but in the Project->Properties->Configuration Properties->Linker->Input->Additional Dependencies , I see : $(SolutionDir)OpenGL\Lib\glut32.lib ....etc
rantravee
that would do it - you need to put quotes around the $(SolutionDir) because that could expand so it has spaces in it - otherwise the compiler is looking for c:\Documents.obj and "and.obj" and "Settings\...\glut32.obj"
Matt Breckon
yup it works....also changing the location of the project seems to work ,thanks !
rantravee