Compartilhar via


Attention, mines: LNK1104: cannot open file 'c:Program.obj'

Did you ever see the error message "LNK1104: cannot open file 'c:\Program.obj'"? No need to say that you are not that kind of a programmer who generates OBJ files in the root of disk C:... So, what's up and how to fix that?

Either
use short 8.3 path in additional dependencies, or put the long path
into "Linker | General | Additional Library Directories" and simply the
name of the library without path into Additional Dependencies.

I
realize that getting such a message is a sort of shock (I've got it
today myself and still feel it :-)), here is the secret:
"C:\Program.obj" is the long path like "C:\Program Files\Microsoft
Platform SDK for Windows Server 2003 R2\Lib" cut after the first space
and appended with the default extension ".obj".

Comments

  • Anonymous
    April 09, 2007
    Hi, What if I install Microsoft SDKs? Is this error only due to SDK lib? Or I need to do "put the long path into "Linker | General | Additional Library Directories" and simply the name of the library without path into Additional Dependencies" for all the libraries? Btw, what is short 8.3 path? I am a newbie to OpenCV. Thanks for answering my stupid questions in advance.

  • Anonymous
    April 09, 2007
    The comment has been removed

  • Anonymous
    March 09, 2010
    I have a problem in this matter(message: can not open "program.obj").Is it that anyone guide me in easy form.