Solved

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

Posted on 2008-10-08
2
291 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
edit html 3 148
Execute hudson/jenkins job using script multiple times 7 274
Fast data scrub 19 101
eclipse package explorer vs project explorer view 2 233
Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
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 explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…

726 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