Bug #8239 2006-07-29 12:43

czarny

No project templates

When starting the CB from latest SVN builds, I get a bunch of errors of type:

SquirrelFunction<> call failed
AN ERROR HAS OCCURED [arith op + on between 'userdata' and 'userdata']

CALLSTACK
*FUNCTION [RegisterWizard()] /usr/share/codeblocks/templates/wizard/config.script line [56]
*FUNCTION [RegisterWizards()] /usr/share/codeblocks/templates/wizard/config.script line [11]

LOCALS
[category] USERPOINTER
[title] USERPOINTER
[folder] USERPOINTER
[type] 0
[this] TABLE
[this] TABLE

The problem is in config.script file in templetaes/wizard:

    Wizard.AddWizard(type,
                     title,
                     category,
                     folder + _T("/wizard.script"),
                     folder + _T("/logo.png"),
                     folder + _T("/wizard.png"),
                     folder + _T("/wizard.xrc"));

The '+' sign between folder and string provokes the error.

But after deleting the _T() function, no error is shown at runtime, but a few of 

GetInstance: Invalid argument type

errors occur, and there are no project templates present. This makes CB unusable, cause I can't make any now project!!

This is connected with all other templates - files etc..

Please fix this ASAP, cause CB is unusable with this.
Category
Application::Error
Group
 
Status
Closed
Close date
2006-08-02 08:33
Assigned to
 
killerbot 2006-07-29 21:44

could you state your os, gcc version etc ... please ?

czarny 2006-07-31 16:25

Of course, I could.

PLD Linux:

[czarny@kacper ~]$ uname -a

Linux kacper 2.6.16.27-1 #1 Mon Jul 17 15:20:17 UTC 2006 i686 Intel(R)_Pentium(R)_M_processor_1.70GHz unknown PLD Linux

[czarny@kacper ~]$ gcc -v

Reading specs from /usr/lib/gcc/i686-pld-linux/4.1.2/specs

Target: i686-pld-linux

Configured with: ../configure --prefix=/usr --with-local-prefix=/usr/local --libdir=/usr/lib --libexecdir=/usr/lib --infodir=/usr/share/info --mandir=/usr/share/man --x-libraries=/usr/lib --enable-shared --enable-threads=posix --enable-languages=c,c++,fortran,objc,obj-c++,ada,java --enable-c99 --enable-long-long --disable-multilib --enable-nls --disable-werror --with-gnu-as --with-gnu-ld --with-demangler-in-ld --with-system-zlib --with-slibdir=/lib --without-system-libunwind --enable-cmath --with-long-double-128 --with-gxx-include-dir=/usr/include/c++/4.1.2 --disable-libstdcxx-pch --enable-__cxa_atexit --enable-libstdcxx-allocator=new --with-qt4dir=/usr/lib/qt4 --disable-libjava-multilib --enable-libgcj --enable-libgcj-multifile --enable-libgcj-database --enable-gtk-cairo --enable-java-awt=qt,gtk,xlib --enable-jni --enable-xmlj --enable-alsa --enable-dssi i686-pld-linux

Thread model: posix

gcc version 4.1.2 20060712 (prerelease) (PLD-Linux)

mandrav 2006-08-02 08:33

As you may have already read in the forums, some of our template code cannot be compiled with gcc-4.1.x. And for no good reason it seems. Seems like a gcc bug/regression because the same code compiles just fine with gcc up to 4.0.x.

Sorry.