Solved

VC++ 6.0 builds release, but not debug

Posted on 1999-01-28
6
236 Views
Last Modified: 2010-04-02
Using VC++ 6.0, my release version builds without any trouble, but the debug version gives me 3 LNK2001 errors. After having read sveral articles in the help online, I'm no closer to understanding why. The help states that the reverse seems te be more frequent..that is, having a working debug version and the release version won't build. Can anyone shed some light on this for me? Thanks!
0
Comment
Question by:pigeonbr
  • 2
  • 2
  • 2
6 Comments
 
LVL 22

Expert Comment

by:nietod
ID: 1185442
It would be helpful to know what the errors are--what symbols does it complain about?
0
 
LVL 2

Accepted Solution

by:
amitc011599 earned 100 total points
ID: 1185443
Since not all libraries are installed by default, especially the CRT and MFC libraries, so do one of these things,
1. Ensure that your "Library files" directories list (Access through Tools-> Options-Directories also includes the directories on the CD\Remote computer where you installed VC from and the directory is accessible

2. That you have the following libs in the lib directory, MSVCRTD.LIB, LIBCD.LIB and LIBCMTD.LIB

Is this does not work, try posting the exact errors, just do a copy and paste from the output window.
0
 

Author Comment

by:pigeonbr
ID: 1185444
Hi! When building, the compiler complains as follows:

--------------------Configuration: Pieces3CLR - Win32 Debug--------------------
Linking...
Pieces3CLRView.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CPieces3CLRView::Dump(class CDumpContext &)const " (?Dump@CPieces3CLRView@@UBEXAAVCDumpContext@@@Z)
Pieces3CLRView.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CPieces3CLRView::AssertValid(void)const " (?AssertValid@CPieces3CLRView@@UBEXXZ)
Pieces3CLRView.obj : error LNK2001: unresolved external symbol "public: class CPieces3CLRDoc * __thiscall CPieces3CLRView::GetDocument(void)" (?GetDocument@CPieces3CLRView@@QAEPAVCPieces3CLRDoc@@XZ)
\Debug/Pieces3CLR.exe : fatal error LNK1120: 3 unresolved externals
Error executing link.exe.

Pieces3CLR.exe - 4 error(s), 0 warning(s)


In the release version, no trouble. I await your interpretation. Thanks for responding!
Bruce
(pigeonbr)

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 22

Expert Comment

by:nietod
ID: 1185445
Are these functions defined in CPieces2CLRVuew.cpp?  Are then in closed conditional code (#if), so they might not be included in a release version?  
0
 
LVL 2

Expert Comment

by:amitc011599
ID: 1185446
What is going wrong is that your prgram is not finding the debug MFC libraries. This is typically MFCxxD.lib or MFCxxUD.lib, where xx is the MFC version, 60 in your case.

You will need to copy these files or do a reinstall of VC 6.0 and select all the MFC library options.
0
 

Author Comment

by:pigeonbr
ID: 1185447
amitc:
 I verified  that MSVCRTD.LIB, LIBCD.LIB and LIBCMTD.LIB were all installed and that in the Tools->Options->Directories menu that all files and paths were ok. All seeme to point to the right directories.I tried to re-install VC 6.0 the same way I had, that is , by selecting all the options, so as not to miss anything, but with the same result. The program I was working on was started in VC 4.0 and when I got VC 6.0, I imported it, seemingly with success, but the debug doesnt want to work, and I had no problems with eithere release or debug in  VC 4.0. I still have 4.0 on my pc, but I don't believe this is affecting anything. If you have any more ideas, let me know. I will attempt to get some help from Microsoft this week comeing thru their telephone support, but don't bargain on much FREE help from them..hahaha....thanks...I await your return
pigeonbr
Quebec Canada

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
Could someone please explain the following output from a linux based ldd -v  command? 6 129
FMX enumerated colours 2 84
How to split this in C++ 4 94
Safe conversion? 4 58
When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

910 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

24 Experts available now in Live!

Get 1:1 Help Now