Click to See Complete Forum and Search --> : Error when linking to an extension DLL


Thinker Mou
04-11-2001, 02:27 AM
I wrote a MFC extension DLL and a small client application to test it. I've
set the right .lib for the linker in the "project/setting" tab of the client.
Also copied the needed .h files. But at execution,I received:
Linking...
LINK : fatal error LNK1104: cannot open file "\Program.obj"
Error executing link.exe.
I just can't understand what "\Program.obj" is,why it's needed,and I can't
find it.

Sheshadri Iyengar
04-11-2001, 06:49 AM
Thinker Mou wrote:

> I wrote a MFC extension DLL and a small client application to test it. I've
> set the right .lib for the linker in the "project/setting" tab of the client.
> Also copied the needed .h files. But at execution,I received:
> Linking...
> LINK : fatal error LNK1104: cannot open file "\Program.obj"
> Error executing link.exe.
> I just can't understand what "\Program.obj" is,why it's needed,and I can't
> find it.

1. Check whether the file exists or not
2. Check whether the filename or its path was incorrectly specified.
3. Check whether the file doesn't have the appropriate permissions.

If "program.obj" is part of your executable, then terminate if any previous
instance is running.

shesh