"Automatically linking..." and build performance |
Post Reply |
Author | |
aznodak
Newbie Joined: 26 July 2005 Status: Offline Points: 5 |
Post Options
Thanks(0)
Posted: 26 February 2007 at 4:15pm |
It appears that every file that has a extreme toolkit include statement generates a "Automatically linking..." message during compilation. A single file may generate multiple "Automatically linking..." messages depending on how many of my gui components are based on extreme toolkit components (one file including references to other project includes files that themselves have extreme toolkit include statements).
Most, if not all, of my include files have the #pragma once statement at the top of the file.
Two questions:
1) Is there a way to disable the "Automatically linking..." message generation during compilation time?
2) Much more important: Compilation time for a file using an extreme toolkit component increases noticeably. Any recommendations on improving build performance? (The "Automatically linking..." message is a sure indicator that the compile will go slower).
Development environment:
Extreme Toolkit Pro 10.2 under .NET 2003 C++.
Thanks,
Greg
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
You have include XTToolkitPro.h only in stdafx.h and not in another files.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
aznodak
Newbie Joined: 26 July 2005 Status: Offline Points: 5 |
Post Options
Thanks(0)
|
Master Oleg,
I am assuming you meant that I should place the XTToolkitPro.h in stdafx.h only, is that correct?
- Greg
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Yes, right.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
akur
Senior Member Joined: 16 May 2006 Status: Offline Points: 139 |
Post Options
Thanks(0)
|
Although I use #include <XTToolkitPro.h> _only_ in stadfx.h as told here, I have multiple messages about "Automatically linking with XTP..."!
This is because each GUI DLL has to have XTP included in its stdafx.h and when I include one of my own header files in another header file (between modules), then I get multiple messages about linking with XTP. Can this be avoided somehow? Maybe you could add a simple #pragma once into XTToolkitPro.h in some next release? Thank you, in advance! |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hello,
it can 't be change in XTToolkitPro.h it have to be fixed in your project. I sure you have some file with include XTToolkitPro.h and you add it to each your CPP file.
Also check settings of your stdafx.cpp file - it have to be "Create precompile header".
add in your stdafx.h
#pragma message("TEST")
if you will see it more than once you have problem with your settings.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
akur
Senior Member Joined: 16 May 2006 Status: Offline Points: 139 |
Post Options
Thanks(0)
|
I assume I would see your #pragma message("TEST") many times, since we don't use Precompiled Headers and each source file includes stdafx.h.
Do you mean XTP users are obliged to use PCH if they don't want to have one "Automatically linking..." message per source file during compilation? |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hello,
You need use Precompiled Headers , it will compille your application faster in times. Now all file parse all toolkit sources.
You can add _XTPLIB_NOAUTOLINK before include toolkit - it will remove message, but will not add speed for compilation. Only Precompiled Headers can help you.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Sergio
Senior Member Joined: 18 September 2006 Status: Offline Points: 216 |
Post Options
Thanks(0)
|
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
|
|
ABuenger
Newbie Joined: 02 February 2006 Status: Offline Points: 1075 |
Post Options
Thanks(0)
|
Do you have multiple projects in your solution which include XTToolkitPro.h ?
|
|
Codejock support
|
|
Sergio
Senior Member Joined: 18 September 2006 Status: Offline Points: 216 |
Post Options
Thanks(0)
|
Yes :
One DLL using XTToolKitPro --- Another one using the previous DLL and also XTToolKitPro ------- Application using the two DLLs. It seems to be linked with managed code (CLR). |
|
Sergio
|
|
ABuenger
Newbie Joined: 02 February 2006 Status: Offline Points: 1075 |
Post Options
Thanks(0)
|
You might want to try to include header files of "DLL one" only in StdAfx.h of "DLL two" and so on. |
|
Codejock support
|
|
Sergio
Senior Member Joined: 18 September 2006 Status: Offline Points: 216 |
Post Options
Thanks(0)
|
Yes, that's what we did.
The managed code (CLI/CLR) seems to be responsible, because when compiling in Debug mode, only the managed files produce the "Automatically linking ..." problem. When compiling in Release mode, the managed files are compiled at first and then all files produce the problem. Please note that it occurs in the second DLL project, not in the final application. |
|
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 |