Re: problems in combining release and debug libraries to get and executable
- From: "wolverine" <kiran.happy@xxxxxxxxx>
- Date: 28 Mar 2007 01:52:55 -0700
On Mar 27, 10:00 pm, Ulrich Eckhardt <dooms...@xxxxxxxx> wrote:
wolverine wrote:
Assume i have a library "libabc.a" which is build in debug ( -g
flag) mode and another library "libxyz.a" which is build in release (-
O2 flag) mode.
Often, the difference is not just the -O2/-g but also a -DNDEBUG in release
mode. If this changes anything in the interface(!) of the library, this
will lead to problems.
Then if i link these 2 libraries like
1) g++ -g test.cpp -labc -lxyz (debug build)
2) g++ -O2 test.cpp -labc -lxyz (release build)
Will any of the above 2 builds result in a incorrect executable ?
From what you said, not necessarily.
Why did you say "From what you said" ?. Is there any case in which
linking debug and release build libraries can cause problems ?
Uli
--http://www.erlenstar.demon.co.uk/unix/
.
- Follow-Ups:
- Re: problems in combining release and debug libraries to get and executable
- From: Paul Pluzhnikov
- Re: problems in combining release and debug libraries to get and executable
- References:
- problems in combining release and debug libraries to get and executable
- From: wolverine
- Re: problems in combining release and debug libraries to get and executable
- From: Ulrich Eckhardt
- problems in combining release and debug libraries to get and executable
- Prev by Date: Re: char *** help
- Next by Date: Re: char *** help
- Previous by thread: Re: problems in combining release and debug libraries to get and executable
- Next by thread: Re: problems in combining release and debug libraries to get and executable
- Index(es):
Relevant Pages
|
|