Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » Corrected MscBuilder.cpp for MSC8 and INTEL compiler
Corrected MscBuilder.cpp for MSC8 and INTEL compiler [message #9227] Sun, 22 April 2007 15:41 Go to next message
adkiller is currently offline  adkiller
Messages: 25
Registered: November 2005
Promising Member
Hi,

I have an updated and working patch for TheIDE that performs the following:
- Build Visual C++ 2005 exe and dll with correct flags
- Embeds the .manifest files into exe and dll automatically for shared builds (MSC8 flag must be enabled!)
- Works correctly with the Intel C++ compiler for Windows (uses xilib and xilink)

The patch is for U++ 2007.1. Just replace the MscBuilder.cpp in (U++)\uppsrc\ide\Builders folder with the one attached and rebuild TheIDE.

Thanks,
-Ad
Re: Corrected MscBuilder.cpp for MSC8 and INTEL compiler [message #9228 is a reply to message #9227] Sun, 22 April 2007 18:06 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Thanks, now in the main tree....

Mirek
Re: Corrected MscBuilder.cpp for MSC8 and INTEL compiler [message #9322 is a reply to message #9228] Fri, 27 April 2007 00:36 Go to previous messageGo to next message
adkiller is currently offline  adkiller
Messages: 25
Registered: November 2005
Promising Member
Hi Mirek,

There is a bug in MscBuilder.cpp. It occurs when a static build is created using MSC8 and mt is executed when it not supposed to.

The bug is in MscBuilder.cpp, line 474:
			if(Execute(link) == 0) {
				CustomStep(".post-link");
				if(HasFlag("MSC8")) {
					String mt("mt -nologo -manifest ");
					mt << GetHostPathQ(target) << ".manifest -outputresource:" << GetHostPathQ(target)
				           << (HasFlag("DLL") ? ";2" : ";1");
				   Execute(mt);
				}

To fix it, please change it to:
			if(Execute(link) == 0) {
				CustomStep(".post-link");
				if(HasFlag("MSC8") && HasFlag("SHARED")) {
					String mt("mt -nologo -manifest ");
					mt << GetHostPathQ(target) << ".manifest -outputresource:" << GetHostPathQ(target)
				           << (HasFlag("DLL") ? ";2" : ";1");
				   Execute(mt);
				}


Thanks,
-Ad
Re: Corrected MscBuilder.cpp for MSC8 and INTEL compiler [message #9337 is a reply to message #9322] Sat, 28 April 2007 08:09 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
YEs, I alread did based on PM...
Previous Topic: Attempting to compile U++ drawing examples
Next Topic: pre-define for preprocessor
Goto Forum:
  


Current Time: Fri May 03 00:28:12 CEST 2024

Total time taken to generate the page: 0.04841 seconds