Print Page | Close Window

Why is dynamic static build lib so big?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=2485
Printed Date: 06 May 2024 at 9:58pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Why is dynamic static build lib so big?
Posted By: jeffcmj
Subject: Why is dynamic static build lib so big?
Date Posted: 30 June 2005 at 11:20pm

It's over 22M while static build is just 9M. I though the dynStatic build come without MFC dll, which shall make it smaller. If it's even bigger than I static link with MFC dll, there is no reason to use it.

Did I build in a wrong way or there is something wrong with the toolkit?




Replies:
Posted By: srana
Date Posted: 01 July 2005 at 7:07am
Are you using whole program optimization ?

-------------

Shrishail Rana


Posted By: jeffcmj
Date Posted: 04 July 2005 at 9:54pm
no. I used the default deploy wizard to compile. Doesn't anyone notice this ?


Posted By: Oleg
Date Posted: 05 July 2005 at 6:17am

Hello,

Compare result exectables. Lib files contain a lot of internal links/symbols.



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: jeffcmj
Date Posted: 17 September 2005 at 9:31pm

Sorry to bump.

The result I got with same application:

1. Compile with shared MFC lib 1328KB
2. Compile with static linked MFC lib 1300KB.

It's more strange that share MFC link even larger than static link.



Posted By: PeterP
Date Posted: 18 September 2005 at 9:40pm

The size went up drastically with version 9.70.

My release build executable using dynStatic library increased in size by over 700k just by changing from v9.601 to v9.70.

This seems out of proportion to the features added.



Posted By: Barto
Date Posted: 19 September 2005 at 12:31pm

I noticed there seems to be a bug in 9.70 regarding the #defines XT_STATICLINK and _XT_STATICLINK.

So every time I compile my app with static XTP, it also generates an .exp and .lib file and of course all the XTP symbols are there by name in the .exe for exporting... This probably explains the bigger size.

I hope Codejock fixes this problem for the next release, it's a bit annoying..



Posted By: Oleg
Date Posted: 26 September 2005 at 7:06am

jeffcmj, Barto you was right, it was our bug with exporting symbols.

Was fixed for 9.80



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net