Re: link release dll to debug exe ? possible ?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I think Michel missed the negation in your question (in fact, I did too
at first). Linking against release libs is no problem at all -as Michel
says, the bulk of the libs you link against during development are
probably release builds.

Debug builds are generally a good thing, but since they are also slower
and take up more memory space, exessive use of debug built libs may
mask potential problems (i.e. timing related) and also create new
problems (memory starvation, performance problems etc.).

Henrik Viklund
http://www.addlogic.se

Adib Taraben wrote:
Thanks for the answer. Maybe I was not clear what I mean:

Is it possible to mix debug application with release libraries? or
should(must) a debug application only linked to debug libraries and
release application to release libraries?

Michael I am understanding you that you are saying yes (for the first
question) and no to the second? My colleagues arguing vice versa.

Thanks,

Adib.
---

Michel Verhagen (eMVP) schrieb:
Yes, they are correct. Most (third party) libraries you are linking
against in normal application development will be release builds
already. The only thing is that you can't debug into those libs, but as
you said that is no problem.

Regards,

Michel Verhagen, eMVP
EmbeddedFusion
www.EmbeddedFusion.com
mverhagen at embeddedfusion dot com

Adib Taraben wrote:
Hello,

my colleagues telling me that I should not link their dlls/libs in
release version to my application in debug version.

I think the API is the same. I do not care about debugging into that
libs. I am working with eVC4 and WinCE4.2

Are my colleagues right?

Thx, Adib.
---


.



Relevant Pages

  • Re: link release dll to debug exe ? possible ?
    ... Most libraries you are linking against in normal application development will be release builds already. ... The only thing is that you can't debug into those libs, but as you said that is no problem. ... my colleagues telling me that I should not link their dlls/libs in release version to my application in debug version. ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: link release dll to debug exe ? possible ?
    ... Is it possible to mix debug application with release libraries? ... My colleagues arguing vice versa. ... The only thing is that you can't debug into those libs, but as you said that is no problem. ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: Is there a way to disable certain API calls in C++
    ... Well certainly you can do it by excluding standard libs in your projects. ... the setting is called "ingnore default libraries" in the linker settings. ... Then make sure your team uses a standard project template for their projects ... Of course you might still want this stuff under debug ...
    (microsoft.public.vc.mfc)
  • Re: more manifest woes
    ... its debug version in depends.exe I see that it links against ... dll/exe are built with different C Runtime settings. ... or by making it a dependency in the Visual Studio ... Some .libs have 'neutral' debug/release dependencies -- ...
    (microsoft.public.vc.language)
  • Re: Another stupid MSVC6 linking problem
    ... difference introduced in source (#ifdef DEBUG), ... difference between configurations (Debug and Release may differ in ... - difference between libs itself (i.e. you must include different libs ... another header file. ...
    (microsoft.public.vc.mfc)