User forums > Help
Problem when opening the codeblocks workspace
(1/1)
jmccay:
I am using Code::Blocks 3803 on windows
I just updated the code::block code from svn to revision: 4600. When I open the code:block workspace, I get a script error:
SquirrelFunction<> call failed
AN ERROR HAS OCCURED [the index 'GetCompilerVersionString' does not exist]
(occured is also a type. It should be occurred.)
I only get the error when I open the Code::Blocks workspace (codeblocks.cbp). Any ideas why this is happening? I checked the report file, and it didn't have anything related to this error.
jmccay
stahta01:
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.
--- Code: ---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"));
--- End code ---
Tim S
Tested existence of GetCompilerVersionString using below info.
--- Quote from: Biplab on November 03, 2007, 04:50:33 am ---Then I started C::B and checking the version string by running the following script at script console.
--- Code: ---ShowInfo(GetCompilerFactory().GetCompilerVersionString(_T("gcc")));
--- End code ---
And it returns 4.2.1 and in my case a wx project works well with 3.4.x or 4.2.x compilers. :)
--- End quote ---
jmccay:
I updated to 4596, and it worked. I thought it might fix it, but I didn't want to go on any wild goose chases. Thank you.
Navigation
[0] Message Index
Go to full version