Author Topic: Problem when opening the codeblocks workspace  (Read 3429 times)

Offline jmccay

  • Almost regular
  • **
  • Posts: 202
Problem when opening the codeblocks workspace
« on: November 07, 2007, 02:48:09 am »
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
« Last Edit: November 07, 2007, 02:57:30 am by 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.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7592
    • My Best Post
Re: Problem when opening the codeblocks workspace
« Reply #1 on: November 07, 2007, 03:16:52 am »
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"));
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.
Code
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. :)

« Last Edit: November 07, 2007, 06:00:55 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline jmccay

  • Almost regular
  • **
  • Posts: 202
Re: Problem when opening the codeblocks workspace
« Reply #2 on: November 07, 2007, 11:19:58 pm »
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.