Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Why is dynamic static build lib so big?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Why is dynamic static build lib so big?

 Post Reply Post Reply
Author
Message
jeffcmj View Drop Down
Groupie
Groupie


Joined: 28 October 2004
Status: Offline
Points: 92
Post Options Post Options   Thanks (0) Thanks(0)   Quote jeffcmj Quote  Post ReplyReply Direct Link To This Post Topic: Why is dynamic static build lib so big?
    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?

Back to Top
srana View Drop Down
Groupie
Groupie
Avatar

Joined: 15 May 2003
Location: India
Status: Offline
Points: 27
Post Options Post Options   Thanks (0) Thanks(0)   Quote srana Quote  Post ReplyReply Direct Link To This Post Posted: 01 July 2005 at 7:07am
Are you using whole program optimization ?

Shrishail Rana
Back to Top
jeffcmj View Drop Down
Groupie
Groupie


Joined: 28 October 2004
Status: Offline
Points: 92
Post Options Post Options   Thanks (0) Thanks(0)   Quote jeffcmj Quote  Post ReplyReply Direct Link To This Post Posted: 04 July 2005 at 9:54pm
no. I used the default deploy wizard to compile. Doesn't anyone notice this ?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
jeffcmj View Drop Down
Groupie
Groupie


Joined: 28 October 2004
Status: Offline
Points: 92
Post Options Post Options   Thanks (0) Thanks(0)   Quote jeffcmj Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
PeterP View Drop Down
Newbie
Newbie


Joined: 18 September 2005
Location: Australia
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote PeterP Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
Barto View Drop Down
Groupie
Groupie


Joined: 27 February 2005
Location: Germany
Status: Offline
Points: 60
Post Options Post Options   Thanks (0) Thanks(0)   Quote Barto Quote  Post ReplyReply Direct Link To This Post 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..

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.219 seconds.