-
August 24th, 2009, 11:59 AM
#1
[SOLVED] How to compile one project in Release in a Debug solution
Hello all,
My solution is made up of several different projects. I want to be able to compile one of these projects in Release all the time, even if the global configuration and all the other projects are in Debug.
(If you're wondering, my application has some time-critical constraints. We sometimes need to use the Debug version to get more information/traces when reproducing specific problems. But one particular project in the solution -- the SQLite library -- is so slow when compiled in Debug that it causes more problems itself because of the time constraints. Since I trust that SQLite is fairly well debugged already, I see no need to compile it in Debug anyway.)
When linking, here are the errors/warning I get:
Code:
Warning 1 warning LNK4075: ' /EDITANDCONTINUE' ignoré Ã* cause de la spécification '/INCREMENTAL:NO' classes_log.lib
Error 2 error LNK2005: _calloc déjÃ* défini(e) dans libcmtd.lib(dbgheap.obj) LIBCMT.lib
Warning 3 warning LNK4098: conflit entre la bibliothèque par défaut 'LIBCMT' et les autres bibliothèques*; utilisez /NODEFAULTLIB:library classes_dhm
Error 4 fatal error LNK1169: un ou plusieurs symboles définis Ã* différentes reprises ont été rencontrés S:\output\DMU.exe 1
The messages are in French but the error codes LNKxxxx should be the same.
Any help in getting rid of these errors would be greatly appreciated.
Sorry for my broken English. If I wasn't clear, or if you need more info, please ask!
Last edited by wlof; August 25th, 2009 at 05:02 AM.
Reason: Problem solved
-
August 24th, 2009, 01:32 PM
#2
Re: How to compile one project in Release in a Debug solution
Build that project in a separate solution, and simply link in the resulting library like you would any other.
-
August 25th, 2009, 04:59 AM
#3
Re: How to compile one project in Release in a Debug solution
Actually, I just added libcmt.lib to the ignored libraries in the linker input, and it works like a charm. Thanks anyway!
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|