Linker error with VC++ 6.0

This is a discussion on Linker error with VC++ 6.0 within the C++ Programming forums, part of the General Programming Boards category; Hey I'm working with VC++ 6.0 on an old project at work and if I export the makefile and do ...

  1. #1
    Registered User
    Join Date
    Jan 2008
    Posts
    5

    Linker error with VC++ 6.0

    Hey I'm working with VC++ 6.0 on an old project at work and if I export the makefile and do the nmake /f lib.mak I can get the code to compile and link (with the MS V6.0 cl.exe and link.exe) . If I go into studio and hit build I get a linker error with a garbage file name that I can't search.


    LINK : fatal error LNK1104: cannot open file ".obj"

    Is this related to the .dsp file? Where can I hunt this thing down? How can I get a list of all the files it is trying to link?

    Thanks for the help,

    Dave

  2. #2
    Registered User
    Join Date
    Jan 2007
    Location
    Euless, TX
    Posts
    144
    You may be able to find the answer quicker on CodeProject.com, and ask your question under the VC++/MFC section.

  3. #3
    Registered User
    Join Date
    Jan 2008
    Posts
    5
    Thanks, I just posted it there too, they seem to have a pretty good VC++/MFC section.
    - Dave

  4. #4
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    Does VC++ 6.0 handle High ASCII characters in filenames very well?

  5. #5
    Registered User
    Join Date
    Jan 2008
    Posts
    5
    I don't know, but I don't have a file with that kind of a wierd name anyways. My other projects in that same workspace also have different garbage name files that they try to link to.

  6. #6
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    One thing I always try when VC++ 6.0 does something weird is delete the .ncb file and re-open & compile the project.

  7. #7
    Registered User
    Join Date
    Jan 2008
    Posts
    5
    So i've tracked it down to by reading the .plg file it's apparently putting some garbage in the .tmp file (note right after the first [ the first thing in the temp file is garbage).

    I don't suppose anyone knows where to edit the creation of these temp files?
    Code:
    Creating command line "cl.exe @C:\DOCUME~1\xxxx\LOCALS~1\Temp\RSP14F.tmp"
    Creating temporary file "C:\DOCUME~1\xxxx\LOCALS~1\Temp\RSP150.tmp" with contents
    [
     D:\devel57\lib\libtoold.lib wsock32.lib /nologo /dll /incremental:yes /pdb:"..\..\..\..\lib/libserverbased.pdb" /debug /machine:I386 /nodefaultlib:"msvcrt" /out:"..\..\..\..\bin/libserverbased.dll" /implib:"..\..\..\..\lib/libserverbased.lib"
    .\dbg\viacmffnc.obj
    .\dbg\viainfofile.obj
    .\dbg\viainfofolder.obj
    .\dbg\viaprocess.obj
    .\dbg\viaroutefnc.obj
    .\dbg\viaserver.obj
    .\dbg\viaserverqueue.obj
    .\dbg\viaserverstop.obj
    .\dbg\viashipfnc.obj
    .\dbg\viaswitchpanel.obj
    .\dbg\viaworkunit.obj
    ]
    Creating command line "link.exe @C:\DOCUME~1\xxxx\LOCALS~1\Temp\RSP150.tmp"
    Thank you for all the help thus far!

  8. #8
    Registered User
    Join Date
    Jan 2008
    Posts
    5
    issue closed one of my environment variables isn't gettting inherited right with the /USEENV command. I need to fix that.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. makefile exported by vc 6.0 doesn't work
    By wow in forum Windows Programming
    Replies: 7
    Last Post: 03-24-2006, 04:20 PM
  2. Can't compile this with VC 6.0
    By uriel2013 in forum C++ Programming
    Replies: 4
    Last Post: 05-31-2003, 08:43 PM
  3. Linker problem in Visual C++ 6.0
    By Christer in forum Windows Programming
    Replies: 1
    Last Post: 12-10-2002, 11:57 AM
  4. adding a header file in VC 6.0
    By stimpyzu in forum C++ Programming
    Replies: 5
    Last Post: 10-28-2002, 02:26 AM
  5. VC 6.0 compiled error
    By alan4100 in forum Windows Programming
    Replies: 4
    Last Post: 09-17-2001, 04:10 PM

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