User forums > Help
Cannot compile R2706 under SuSE Linux 9.3 (AMD64)
MortenMacFly:
...I'm lost. I've already fixed a missing include but now I receive the following error:
--- Code: ---compilercommandgenerator.cpp: In member function `virtual void
CompilerCommandGenerator::DoBuildScripts(CompileOptionsBase*, const
wxString&)':
compilercommandgenerator.cpp:258: error: no matching function for call to `
SqPlus::SquirrelFunction<void>::SquirrelFunction(const wxString&)'
../../src/sdk/scripting/sqplus/sqplus.h:1523: error: candidates are:
SqPlus::SquirrelFunction<void>::SquirrelFunction(const
SqPlus::SquirrelFunction<void>&)
../../src/sdk/scripting/sqplus/sqplus.h:1535: error:
SqPlus::SquirrelFunction<RT>::SquirrelFunction(const SQChar*) [with RT =
void]
../../src/sdk/scripting/sqplus/sqplus.h:1530: error:
SqPlus::SquirrelFunction<RT>::SquirrelFunction(const SquirrelObject&, const
SQChar*) [with RT = void]
../../src/sdk/scripting/sqplus/sqplus.h:1529: error:
SqPlus::SquirrelFunction<RT>::SquirrelFunction(const SquirrelObject&, const
SquirrelObject&) [with RT = void]
../../src/sdk/scripting/sqplus/sqplus.h:1528: error:
SqPlus::SquirrelFunction<RT>::SquirrelFunction(SQVM*, const SquirrelObject&,
const SquirrelObject&) [with RT = void]
../../src/sdk/scripting/sqplus/sqplus.h:1527: error:
SqPlus::SquirrelFunction<RT>::SquirrelFunction() [with RT = void]
compilercommandgenerator.cpp:258: error: invalid declarator
make[4]: *** [compilercommandgenerator.lo] Error 1
make[4]: Leaving directory `/home/ftmh/projects/codeblocks/src/sdk'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/ftmh/projects/codeblocks/src/sdk'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/ftmh/projects/codeblocks/src/sdk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ftmh/projects/codeblocks/src'
make: *** [all-recursive] Error 1
--- End code ---
I think it is not related to http://forums.codeblocks.org/index.php?topic=3481.0... but I'm not sure. Any hint?
My configuration: SuSE Linux 9.3 (AMD64), gcc (GCC) 3.3.5 20050117 (prerelease) -> no PCH support.
With regards, Morten.
mandrav:
Try replacing #include <sqplus.h> in that file with
#include "scripting/bindings/sc_base_types.h"
#include "scripting/sqplus/sqplus.h"
If it works, don't commit this. I 'm in the process of cleaning up all the SDK files.
Der Meister:
Doesn't work with gcc 3.3.6 on my gentoo. I get the same error as Morton if I replace #include <sqplus.h>.
MortenMacFly:
--- Quote from: mandrav on July 07, 2006, 01:57:12 pm ---Try replacing #include <sqplus.h> in that file with
--- End quote ---
Nope, doesn't change anything. Anyway, are you aware that for a header-include-cleanup you can nicely use the SDK documenation?! I've added the option to include such graphs on purpose...
mandrav:
OK, I got it.
Change line 259 from:
--- Code: ---SqPlus::SquirrelFunction<void>(cbU2C(funcName))(base);
--- End code ---
to:
--- Code: ---SqPlus::SquirrelFunction<void> f(cbU2C(funcName));
f(base);
--- End code ---
The compiler is choking, it seems...
Navigation
[0] Message Index
[#] Next page
Go to full version