Solved

C++ Build in Debug Mode FAILS but in Release OK

Posted on 2008-10-08
2
286 Views
Last Modified: 2013-12-14
I have inherited a C++ code where I was able to compile in DEBUG mode before.
During this time, I only had Visual C+ 6.0 installed in the workstation.

Recently, I had to install Visual Studio.NET  2003 in the same workstation to work on another app.

Now when I accessed this same C++ code, I am getting what seems to be a linking error when compiled in DEBUG mode.  More puzzling for me is that same code goes through compiling it in RELEASE mode.

Having searched the net, nothing but one came up and stumps me more.

Please help.. im such a noob on c++.
0
Comment
Question by:jermineM
2 Comments
 
LVL 3

Accepted Solution

by:
wktang83 earned 125 total points
ID: 22673417
What you can do is click on Project, then click Properties (from the menu toolbar). This will open up the project settings.

On the top left of the dialog box you will see a Configuration dropdown box. Click it and select Release. Since you said that it is compiling through the Release mode, you might as well note the settings that work for the Release mode. I would strongly suggest go to the C/C++ -> Code Generation settings first. Then, , take a note of the settings of Runtime library.

Then, you would click on the Configuration dropdown box to change to Debug. Go to change whatever that's necessary to make it the same as the Release mode. I would suggest change one at a time, and try to compile if it works under Debug mode.

If there's anything unclear, please ask and I'll try to help as much as possible.

Regards,
wktang83
0
 
LVL 13

Expert Comment

by:Mark_FreeSoftware
ID: 22678536
if you want specific help, it would be best to give us the (full) error message+number

only thing i can think of now, is that you are linking with different version of libraries,
where the debug library either lacks a function you need, or gives a conflict because 2 libs export the same function
0

Featured Post

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

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

Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
I'd like to talk about something that is near and dear to my heart: build systems. Without them, building software is all about compiling locally, with software versions everywhere. It can be a mess. Today we are going to discuss building a small di…
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

867 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

20 Experts available now in Live!

Get 1:1 Help Now