Overview
Features
Download
Documentation
Community
Add-Ons & Services

Linked with both Release and Debug libs on windows

Please post support and help requests here.

Linked with both Release and Debug libs on windows

Postby ulysse » 09 Jun 2008, 11:12


Hi,

If I look to the sample "...poco/util/samples/sampleapp/bin/sampleappmt.exe", which
is a release binary, I see it depends both on msvcr71.dll and msvcr71d.dll.

It seems the exe is linked both with release and debug libraries.
Note that the linker shows a "MSVCRTD.lib(cinitexe.obj) : warning LNK4098: defaultlib 'msvcrt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library"

Any ideas?

Thanks.
ulysse
 
Posts: 2
Joined: 09 Jun 2008, 10:55

Re: Linked with both Release and Debug libs on windows

Postby ulysse » 09 Jun 2008, 11:57


Hi,

I found the prb : the _DEBUG macro is defined for Net, Util and XML modules
for static release builds. I changed it for NDEBUG as usual in release mode and
it is fine now.

I think the VC++2003 solutions have to be reviewed to reflect this little fix ;-)

Cheers.
ulysse
 
Posts: 2
Joined: 09 Jun 2008, 10:55

Re: Re: Linked with both Release and Debug libs on windows

Postby alex » 09 Jun 2008, 14:21

> I think the VC++2003 solutions have to be reviewed to reflect this little fix ;-)

This has already been [url=http://sourceforge.net/tracker/index.php?func=detail&aid=1924743&group_id=132964&atid=725709|reported] in the SF tracker and http://poco.svn.sourceforge.net/viewvc/poco?view=rev&revision=512]fixed[/url in the trunk. I have notified Sergey to backport it to 1.3.3 branch.

Alex
alex
 
Posts: 1048
Joined: 11 Jul 2006, 16:27
Location: United_States


Return to Support

Who is online

Users browsing this forum: No registered users and 3 guests