Solved

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

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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

757 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