LNK1104 'and.obj'

This is a discussion on LNK1104 'and.obj' within the C++ Programming forums, part of the General Programming Boards category; Hello everyone, I have a windows program that uses OpenGL libraries. It ran fine in Visual c++ v6.0 professional. Tried ...

  1. #1
    Registered User
    Join Date
    Apr 2007
    Posts
    2

    LNK1104 'and.obj'

    Hello everyone,

    I have a windows program that uses OpenGL libraries. It ran fine in Visual c++ v6.0 professional. Tried to run it under Visual C++ Express and the linker error

    " cannot open file 'and.obj' "

    comes up. I tried deleting everything except source, header and workspace files and still got the error. Have run other OPenGL programs that use the libraries and they seem to work...can anyone suggest something that I missed?

    Thank you in advance...

  2. #2
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,047
    I'm guessing this file is saved in X:\Documents and Settings, right? Well, it looks like your compiler doesn't support paths with spaces in the path name. Save it somewhere else, like X:\projects or whatever, as long as the name does not contain a space.

    [edit] Either that or add double quotes around the name (I don't use MSVC so I'll put GCC here, but you get the idea):
    Code:
    C:\>gcc "c:\documents and settings\user\my documents\file.c"
    [/edit]
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  3. #3
    Registered User
    Join Date
    Apr 2007
    Posts
    2
    Thanks, I'll give it a try...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. fatal error LNK1104: cannot open file "Files\Microsoft.obj"
    By chintugavali in forum C Programming
    Replies: 2
    Last Post: 03-14-2008, 07:33 AM
  2. LNK1104 file.obj Error
    By tao in forum Windows Programming
    Replies: 4
    Last Post: 07-20-2006, 03:03 PM
  3. fatal error LNK1104: cannot open file 'mfc42d.lib'
    By dkennington in forum C++ Programming
    Replies: 4
    Last Post: 07-12-2006, 02:40 PM
  4. fatal error LNK1104
    By DMH in forum C++ Programming
    Replies: 2
    Last Post: 11-16-2005, 02:46 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21