Link error: Can't find c:/Document.obj

Posted on 2007-08-08
Last Modified: 2013-11-05
I am trying to write a wrapper DLL with Visual Studio 2005 to solve a _cdecl/_stdcall problem I had calling the original DLL methods from VB6. I'm a linux/gnu guy and Microsoft is giving me fits. I finally figured out (I think) how to resolve the external in the wrapper DLL by including the lib file for the original DLL in the Properties/Linker/Input tab. I don't get an 'unresolved external' anymore. I do get the error LINK : fatal error LNK1104: cannot open file 'c:\Documents.obj'. I saw it suggested on another list that being under 'My Documents' was an issue but moving the output does not solve the problem. There is nothing in my source tree remotely like Documents.c/cc. Can anybody tell me what the IDE is whining about?


Question by:muratet

    Author Comment

    I'm going to answer my own question. By trial & error, I figured out where I could set the path for include and library files. I left the path off of the required library name and put the path into box provided and now all of the externals are resolved. If anybody knows what Microsoft meant with this message, I'd still like to hear it.

    Expert Comment

    Looks like it may be trying to interpret c:\documents and settings\ incorrectly?

    Is the path to that lib you added under that directory?

    Accepted Solution

    When I had the lib specified as path/lib it was under c:\documents and settings because it was under My Documents. When I split the path and the lib name the lib was under c:\program files. Maybe that was the issue.

    Author Comment

    Being new to the list, I'm not sure exactly what you mean by PAQ it, but I think it would be worthwhile to leave it somewhere where it can be found by somebody else.


    LVL 86

    Expert Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Suggested Solutions

    Title # Comments Views Activity
    C language IDE – Compilers installation 14 47
    Writing a parser for java language 4 45
    C++ to C# code conversion issue 4 73
    Tab order 16 42
    Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
    Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
    The goal of this video is to provide viewers with basic examples to understand recursion in the C programming language.
    The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

    794 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now