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 » <build_info.h> can't be included in .rc file
<build_info.h> can't be included in .rc file [message #46760] Sat, 30 July 2016 02:01 Go to next message
Alboni is currently offline  Alboni
Messages: 214
Registered: January 2012
Location: Deventer, Netherlands
Experienced Member
If I put
#include <build_info.h>


in myapp.rc then the microsoft resource compiler chokes on it because the last line in the file doesn't have a "\r\n"

I am using the most recent stable version.
Re: <build_info.h> can't be included in .rc file [message #46775 is a reply to message #46760] Mon, 01 August 2016 15:00 Go to previous messageGo to next message
Alboni is currently offline  Alboni
Messages: 214
Registered: January 2012
Location: Deventer, Netherlands
Experienced Member
index.php?t=getfile&id=5049&private=0
  • Attachment: rcbug.png
    (Size: 49.36KB, Downloaded 325 times)

[Updated on: Mon, 01 August 2016 15:29]

Report message to a moderator

Re: <build_info.h> can't be included in .rc file [message #46776 is a reply to message #46775] Mon, 01 August 2016 16:19 Go to previous message
Alboni is currently offline  Alboni
Messages: 214
Registered: January 2012
Location: Deventer, Netherlands
Experienced Member
Ok, I added a line to CppBuilder.cpp

Vector<String> SvnInfo(const String& package)
{
	Vector<String> info;
	String d = GetFileFolder(PackagePath(package));
	if(IsSvnDir2(d)) {
		String v = Sys("svnversion " + d);
		if(IsDigit(*v))
			info.Add("#define bmSVN_REVISION " + AsCString(TrimBoth(v)));
		v = Sys("svn info " + d);
		StringStream in(v);
		while(!in.IsEof()) {
			String l = in.GetLine();
			if(l.StartsWith("URL: ")) {
				info.Add("#define bmSVN_URL " + AsCString(TrimBoth(l.Mid(5))));
				break;
			}
		}
		info.Add(""); // Line I added so that the files terminate with \r\n
	}
	return info;
}


That fixes the issue
Previous Topic: Debugger freezes
Next Topic: [BUG] GUI issue when importing build method
Goto Forum:
  


Current Time: Thu Mar 28 10:56:29 CET 2024

Total time taken to generate the page: 0.00911 seconds