• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 694
  • Last Modified:

LNK1104 fatal error when compiling a DLL

I am compiling an MFC DLL project using Visual C++ 6.0.  It compiles and Links fine in Release mode.  However, If compiling in Debug mode, when it tries to link, I get the fatal error: "LNK1104 cannot open file '/Debug/Gp.dll'".  MSDN help suggested a few things that could be the problem:  low on disk space, the file does not exist, wrong filename or path, drive is invalid etc.  None of these appear to be the problem. Also I've checked PView.exe and Task Manager to make sure the DLL is not still running somewhere.  I'm stuck, not being able to link in debug mode for I need to debug a problem in the code.
Thanks,
jonjon
0
jonjon
Asked:
jonjon
  • 6
  • 5
1 Solution
 
Vinayak KumbarSr Program ManagerCommented:
Hi,

Is 'Gp' is the project workspace name?. If not, then go to project->settings, choose the link->, there give the correct name.

It is surely something to do with Ur project settings. Check the settings once.

VinExpert
0
 
Vinayak KumbarSr Program ManagerCommented:
Hi,

One more crude method....

Restart Ur PC. delete the debug directory. And say ReBuildAll. Then it may solve Ur prob. I told this because, there may be a instance though U have checked....!!!!(I guess)

Try it out.

VinExpert
0
 
jonjonAuthor Commented:
Yes, 'Gp'is the name of the workspace.  I agree that it is probably something in the settings.  I'm just not sure what it is.  I even put the full path for the output file:  "d:\Gp\Debug\Gp.dll"
Any other ideas?
Thanks
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
Vinayak KumbarSr Program ManagerCommented:
Hi,

I can't guess any more. Have U restarted and seen?. The last thing, that I can help U is, send me that dll workspace if u want, to k_bbb100@hotmail.com and I will check it once.

VinExpert
0
 
jonjonAuthor Commented:
Yes, I deleted the /Debug directory and restarted my machine.  No effect.  Still no linking in Debug mode.
0
 
Vinayak KumbarSr Program ManagerCommented:
Hi,
I got it!!!.

I went to project->settings, then chose the link tab and said Reset.

And I built it successfully....

Try it out. I think that should solve Ur problem.

VinExpert
0
 
jonjonAuthor Commented:
You are the Man!
0
 
jonjonAuthor Commented:
WOW!, that worked.  I completely overlooked the reset button, I've never had to use it.  Something in the Link settings must have gotten corrupted.  Thanks for taking the time to review my workspace, I really appreciate the speedy solution.
Thanks
JonJon
0
 
Vinayak KumbarSr Program ManagerCommented:
HI,

That was learning experience for me too..

VinExpert
0
 
Vinayak KumbarSr Program ManagerCommented:
And...

I have deleted it....


VinExpert
0
 
jonjonAuthor Commented:
Thank You
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 6
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now