![]() |
Automatic linking |
Post Reply ![]() |
Author | |
Frode ![]() Groupie ![]() Joined: 22 April 2004 Location: Norway Status: Offline Points: 42 |
![]() ![]() ![]() ![]() ![]() Posted: 22 April 2004 at 4:28pm |
Hello. When compiling my projects (both Win32 Static Library projects and MFC Application projects) every file is automatically linked with the XTP Toolkit library when compiled. Is this necessary - the compilation time is extremely high when using the XTP Toolkit. PS: I have to use the XTP Toolkit static library - and not the DLL! RedirNumRes.cpp Best regards, |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hope you have "#include <XTToolkitPro.h>" in the stdafx.h?
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Frode ![]() Groupie ![]() Joined: 22 April 2004 Location: Norway Status: Offline Points: 42 |
![]() ![]() ![]() ![]() ![]() |
Hello. The following are included in StdAfx.h: Project Settings: rc2 file: BR, |
|
![]() |
|
Frode ![]() Groupie ![]() Joined: 22 April 2004 Location: Norway Status: Offline Points: 42 |
![]() ![]() ![]() ![]() ![]() |
Is there any other ways to avoid each file to be automatically linked with the Codejock libary - what about using dynamic linking (linking to the Codejock DLL instead of the LIB)? We are using 1 Byte struct member alignment in our project setting - while the Codejock libraries are using 8 Bytes struct member alignment. For this reason we are using "pragma" as seen above. |
|
![]() |
|
vladsch ![]() Newbie ![]() Joined: 04 February 2004 Location: Canada Status: Offline Points: 30 |
![]() ![]() ![]() ![]() ![]() |
I also found the slow down of compilation a pain. Over 100 files and only a dozen or so needed XTP. I removed XTToolkitPro.h from the StdAfx.h and added it to all files that actually need it. This sped up compilation for the project as a whole even though it slowed down the compilation files that use XTP. |
|
Vladimir,
|
|
![]() |
|
Frode ![]() Groupie ![]() Joined: 22 April 2004 Location: Norway Status: Offline Points: 42 |
![]() ![]() ![]() ![]() ![]() |
I think using precomiled header file (stdafx.h) solves this problem.
|
|
![]() |
|
Sergio ![]() Senior Member ![]() ![]() Joined: 18 September 2006 Status: Offline Points: 216 |
![]() ![]() ![]() ![]() ![]() |
Hello,
We have currently the same problem. All the files use "Create Precompiled Headers" and our StdAfx.h file uses '#pragma once'. Please help. Regards, |
|
Sergio
|
|
![]() |
|
Sergio ![]() Senior Member ![]() ![]() Joined: 18 September 2006 Status: Offline Points: 216 |
![]() ![]() ![]() ![]() ![]() |
It seems to be linked with managed code (CLR).
|
|
Sergio
|
|
![]() |
|
Sergio ![]() Senior Member ![]() ![]() Joined: 18 September 2006 Status: Offline Points: 216 |
![]() ![]() ![]() ![]() ![]() |
Continued here :
https://forum.codejock.com/forum_posts.asp?TID=6512 |
|
Sergio
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |