Solved

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

Posted on 2008-10-08
2
290 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Display current date,month,and year to JTextField 3 59
"Primary Reference" Warning in Visual Studio 5 44
Aptana 3.6 Preview Problem On Mac 35 136
selectallvieditor 6 119
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…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

790 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