News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Problem when opening the codeblocks workspace

Started by jmccay, November 07, 2007, 02:48:09 AM

Previous topic - Next topic

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
OS: WinXP, Win98 SE, & sometimes Linux

a little light reading from the wxWidgets 2.6.2 readme: A detailed 2000-page reference manual is supplied in HTML, PDF and Windows Help form: see the docs hierarchy.

stahta01

#1
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.

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.
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. :)

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

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.
OS: WinXP, Win98 SE, & sometimes Linux

a little light reading from the wxWidgets 2.6.2 readme: A detailed 2000-page reference manual is supplied in HTML, PDF and Windows Help form: see the docs hierarchy.