Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Revision 5643, fails to compile
MortenMacFly:
--- Quote from: thomas on June 12, 2009, 09:48:01 am ---Why don't you have a look at Sqbind [...]
--- End quote ---
You mean that one:
http://code.google.com/p/sqbind/
???
Didn't know of it until today. BTW: The labels for the project are chosen nicely: "squirrel, binding, simple"... sweet!
MortenMacFly:
--- Quote from: thomas on June 12, 2009, 09:48:01 am ---Dunno, but Sqplus still seems to build on an ages old version of Squirrel... maybe I'm reading it wrong.
--- End quote ---
That is correct in principle, but I had a look at it. The new squirrel is interface compatible, so exchanging the version that ships with SQPlus (which is 2.1.1) with the latest one (which is 2.2.2) should be possible without any hassle... in theory... ;-)
MortenMacFly:
--- Quote from: jens on June 12, 2009, 07:41:59 am ---
--- Code: --- template<>
struct TypeInfo<SQInt32>
{
const SQChar * typeName;
TypeInfo() : typeName(sqT("int")) {}
enum {TypeID=VAR_TYPE_INT,Size=sizeof(SQInt32)};
operator ScriptVarType() { return ScriptVarType(TypeID); }
};
--- End code ---
--- End quote ---
Humpf. I now get a compilation error:
In file included from C:\Devel\CodeBlocks\src\sdk\compilercommandgenerator.cpp:24:
include/scripting/bindings/sc_base_types.h:90: error: redefinition of `struct SqPlus::TypeInfo<SQInteger>'
include/scripting/sqplus/sqplus.h:180: error: previous definition of `struct SqPlus::TypeInfo<SQInteger>'
But have a look: It's not your addition, but the previous typedef which has always been there...?! Am I missing something?!
Jenna:
--- Quote from: MortenMacFly on June 12, 2009, 10:26:36 am ---
--- Quote from: jens on June 12, 2009, 07:41:59 am ---
--- Code: --- template<>
struct TypeInfo<SQInt32>
{
const SQChar * typeName;
TypeInfo() : typeName(sqT("int")) {}
enum {TypeID=VAR_TYPE_INT,Size=sizeof(SQInt32)};
operator ScriptVarType() { return ScriptVarType(TypeID); }
};
--- End code ---
--- End quote ---
Humpf. I now get a compilation error:
In file included from C:\Devel\CodeBlocks\src\sdk\compilercommandgenerator.cpp:24:
include/scripting/bindings/sc_base_types.h:90: error: redefinition of `struct SqPlus::TypeInfo<SQInteger>'
include/scripting/sqplus/sqplus.h:180: error: previous definition of `struct SqPlus::TypeInfo<SQInteger>'
But have a look: It's not your addition, but the previous typedef which has always been there...?! Am I missing something?!
--- End quote ---
You can try to put my addition in an #ifdef _SQ64.
MortenMacFly:
--- Quote from: jens on June 12, 2009, 10:40:22 am ---You can try to put my addition in an #ifdef _SQ64.
--- End quote ---
Nope, that doesn't work, too. As I said: It's not your addition that produces the error, I get it regularly now - even without your patch. Strange...?! :shock:
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version