Solved

LNK1104 fatal error when compiling a DLL

Posted on 2000-03-06
11
677 Views
Last Modified: 2013-11-20
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
Comment
Question by:jonjon
  • 6
  • 5
11 Comments
 
LVL 8

Expert Comment

by:VinExpert
ID: 2590038
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
 
LVL 8

Expert Comment

by:VinExpert
ID: 2590050
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
 

Author Comment

by:jonjon
ID: 2590102
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
 
LVL 8

Expert Comment

by:VinExpert
ID: 2590129
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
 

Author Comment

by:jonjon
ID: 2590178
Yes, I deleted the /Debug directory and restarted my machine.  No effect.  Still no linking in Debug mode.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 8

Accepted Solution

by:
VinExpert earned 250 total points
ID: 2590269
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
 

Author Comment

by:jonjon
ID: 2590286
You are the Man!
0
 

Author Comment

by:jonjon
ID: 2590294
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
 
LVL 8

Expert Comment

by:VinExpert
ID: 2590310
HI,

That was learning experience for me too..

VinExpert
0
 
LVL 8

Expert Comment

by:VinExpert
ID: 2590337
And...

I have deleted it....


VinExpert
0
 

Author Comment

by:jonjon
ID: 2590349
Thank You
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
ODBC Connection Logging, ADO.NET 6 55
ASCII Non-Printable characters/codes and their HTML equivalents 6 104
WinWaitActive parameters 12 31
changeXy challenge 13 67
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

932 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

10 Experts available now in Live!

Get 1:1 Help Now