I suggest downloading a newer version of Code::Blocks Nightly, closer to the version you are trying to compile of SVN 4600. The GetCompilerVersionString was added around the SVN 4421 (4405 does not have it).
Edit: It is being used in file cbgcc420.script. So, if you want you can edit that script file. Patch below should disable check.
Index: src/cbgcc420.script
===================================================================
--- src/cbgcc420.script (revision 4600)
+++ src/cbgcc420.script (working copy)
@@ -9,10 +9,10 @@
local CF = GetCompilerFactory();
if(!IsNull(CF))
{
- local Version = CF.GetCompilerVersionString(CompilerId);
+// local Version = CF.GetCompilerVersionString(CompilerId);
// LogDebug(Version);
// check how this string looks like and compare with 4.2.0
- local bDoIt = (Version >= _T("4.2.0"));
+ local bDoIt = 0; // (Version >= _T("4.2.0"));
if(bDoIt)
{
base.AddCompilerOption(_T("-Wno-attributes"));
Tim S
Tested existence of GetCompilerVersionString using below info.
Then I started C::B and checking the version string by running the following script at script console.
ShowInfo(GetCompilerFactory().GetCompilerVersionString(_T("gcc")));
And it returns 4.2.1 and in my case a wx project works well with 3.4.x or 4.2.x compilers. :)