LNK1181

M

Michael

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
 
L

Larry

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.
 
M

Michael

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top