LNK1181

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Michael

    #1

    LNK1181

    I am trying to write a simple C testcase for a C DLL
    using Visual C++ 6.0. The link step fails with

    LINK : fatal error LNK1181: cannot open input
    file "c:\my.obj"

    I do not have any files my.* on my disk or in my project.
    If I look under the link tab of my project settings, I
    can see nothing that references any such file. Has
    anybody come across this and knows how to get round it?

    Thanks,
    Michael
  • Larry

    #2
    LNK1181

    Michael
    Try looking at your setup under Options on the Tools
    menu. I've run into some odd behavior because the
    paths weren't correct there.
    [color=blue]
    >-----Original Message-----
    >I am trying to write a simple C testcase for a C DLL
    >using Visual C++ 6.0. The link step fails with
    >
    > LINK : fatal error LNK1181: cannot open input
    >file "c:\my.obj"
    >
    >I do not have any files my.* on my disk or in my project.
    >If I look under the link tab of my project settings, I
    >can see nothing that references any such file. Has
    >anybody come across this and knows how to get round it?
    >
    >Thanks,
    >Michael
    >.
    >[/color]

    Comment

    • Michael

      #3
      LNK1181

      Larry,
      Thanks. I added the path to my LIB file, and the build
      succeeds! If only the message hadn't mentioned C:\my.obj
      instead of the lib file name I specified, ........!!

      Michael
      [color=blue]
      >-----Original Message-----
      >Michael
      > Try looking at your setup under Options on the Tools
      >menu. I've run into some odd behavior because the
      >paths weren't correct there.
      >[color=green]
      >>-----Original Message-----
      >>I am trying to write a simple C testcase for a C DLL
      >>using Visual C++ 6.0. The link step fails with
      >>
      >> LINK : fatal error LNK1181: cannot open input
      >>file "c:\my.obj"
      >>
      >>I do not have any files my.* on my disk or in my[/color][/color]
      project.[color=blue][color=green]
      >>If I look under the link tab of my project settings, I
      >>can see nothing that references any such file. Has
      >>anybody come across this and knows how to get round it?
      >>
      >>Thanks,
      >>Michael
      >>.
      >>[/color]
      >.
      >[/color]

      Comment

      Working...