Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

rev 4649 doesn't build on linux

<< < (5/7) > >>

killerbot:
have done that one adjustment, but there are much more errors now. probably some more things got broken.

--- Code: ---../../../../src/include/scripting/sqplus/sqplus.h:346: error: invalid conversion
 from 'int (*)(SQVM*)' to 'SQInteger (*)(SQVM*)'
../../../../src/include/scripting/sqplus/sqplus.h:346: error:   initializing arg
ument 2 of 'static SquirrelObject SquirrelVM::CreateFunction(SquirrelObject&, SQ
Integer (*)(SQVM*), const SQChar*, const SQChar*)'
../../../../src/include/scripting/sqplus/sqplus.h:347: error: invalid conversion
 from 'int (*)(SQVM*)' to 'SQInteger (*)(SQVM*)'
../../../../src/include/scripting/sqplus/sqplus.h:347: error:   initializing arg
ument 2 of 'static SquirrelObject SquirrelVM::CreateFunction(SquirrelObject&, SQ
Integer (*)(SQVM*), const SQChar*, const SQChar*)'
../../../../src/include/scripting/sqplus/sqplus.h: In function 'void SqPlus::cre
ateInstanceSetGetHandlers(SquirrelObject&)':
../../../../src/include/scripting/sqplus/sqplus.h:377: error: invalid conversion
 from 'int (*)(SQVM*)' to 'SQInteger (*)(SQVM*)'
../../../../src/include/scripting/sqplus/sqplus.h:377: error:   initializing arg
ument 2 of 'static SquirrelObject SquirrelVM::CreateFunction(SquirrelObject&, SQ
Integer (*)(SQVM*), const SQChar*, const SQChar*)'
../../../../src/include/scripting/sqplus/sqplus.h:378: error: invalid conversion
 from 'int (*)(SQVM*)' to 'SQInteger (*)(SQVM*)'
../../../../src/include/scripting/sqplus/sqplus.h:378: error:   initializing arg
ument 2 of 'static SquirrelObject SquirrelVM::CreateFunction(SquirrelObject&, SQ
Integer (*)(SQVM*), const SQChar*, const SQChar*)'
../../../../src/include/scripting/sqplus/sqplus.h: In function 'char SqPlus::Get
(SqPlus::TypeWrapper<char>, SQVM*, int)':
../../../../src/include/scripting/sqplus/sqplus.h:1890: error: cannot convert 'I
NT*' to 'SQInteger*' for argument '3' to 'SQRESULT sq_getinteger(SQVM*, SQIntege
r, SQInteger*)'
../../../../src/include/scripting/sqplus/sqplus.h: In function 'unsigned char Sq
Plus::Get(SqPlus::TypeWrapper<unsigned char>, SQVM*, int)':
../../../../src/include/scripting/sqplus/sqplus.h:1891: error: cannot convert 'I
NT*' to 'SQInteger*' for argument '3' to 'SQRESULT sq_getinteger(SQVM*, SQIntege
r, SQInteger*)'
../../../../src/include/scripting/sqplus/sqplus.h: In function 'short int SqPlus
::Get(SqPlus::TypeWrapper<short int>, SQVM*, int)':
../../../../src/include/scripting/sqplus/sqplus.h:1892: error: cannot convert 'I
NT*' to 'SQInteger*' for argument '3' to 'SQRESULT sq_getinteger(SQVM*, SQIntege
r, SQInteger*)'
../../../../src/include/scripting/sqplus/sqplus.h: In function 'short unsigned i
nt SqPlus::Get(SqPlus::TypeWrapper<short unsigned int>, SQVM*, int)':
../../../../src/include/scripting/sqplus/sqplus.h:1893: error: cannot convert 'I
NT*' to 'SQInteger*' for argument '3' to 'SQRESULT sq_getinteger(SQVM*, SQIntege
r, SQInteger*)'
../../../../src/include/scripting/sqplus/sqplus.h: In function 'int SqPlus::Get(
SqPlus::TypeWrapper<int>, SQVM*, int)':
../../../../src/include/scripting/sqplus/sqplus.h:1894: error: cannot convert 'I
NT*' to 'SQInteger*' for argument '3' to 'SQRESULT sq_getinteger(SQVM*, SQIntege
r, SQInteger*)'
../../../../src/include/scripting/sqplus/sqplus.h: In function 'unsigned int SqP
lus::Get(SqPlus::TypeWrapper<unsigned int>, SQVM*, int)':
../../../../src/include/scripting/sqplus/sqplus.h:1895: error: cannot convert 'I
NT*' to 'SQInteger*' for argument '3' to 'SQRESULT sq_getinteger(SQVM*, SQIntege
r, SQInteger*)'
../../../../src/include/scripting/sqplus/sqplus.h: In function 'long int SqPlus:                   :Get(SqPlus::TypeWrapper<long int>, SQVM*, int)':
../../../../src/include/scripting/sqplus/sqplus.h:1896: error: cannot convert 'I                   NT*' to 'SQInteger*' for argument '3' to 'SQRESULT sq_getinteger(SQVM*, SQIntege                   r, SQInteger*)'
../../../../src/include/scripting/sqplus/sqplus.h: In function 'long unsigned in                   t SqPlus::Get(SqPlus::TypeWrapper<long unsigned int>, SQVM*, int)':
../../../../src/include/scripting/sqplus/sqplus.h:1897: error: cannot convert 'I                   NT*' to 'SQInteger*' for argument '3' to 'SQRESULT sq_getinteger(SQVM*, SQIntege                   r, SQInteger*)'

--- End code ---

Hopefully tomorrow or Friday I can take a look at it. Thing is, during the day time currently no 64bit machine available

EDIT : @Morton : were there out places where such things got removed ??
At first sight it doesn't look good for the moment ...

EDIT : we could maybe simplify things by just following this suggestion :

--- Quote ---Compiling squirrel on 64 bits platforms requires to define the _SQ64 variable so I have added in squirrel Makefile the flag -D_SQ64 in CXXFLAGS and then the compilation succeed.
--- End quote ---

but in a portable way then, in the makefile and in the cbp files. So probably the old style is better : _LP64 --> _SQ64, but in the current code this seems not to be sufficient.


just by looking at sqplus.h I see that a lot of SQInteger are now replaced by int. Were does SQIntegers put there by the original authors or were that CB adjustments which got lost in the update ??

MortenMacFly:

--- Quote from: killerbot on November 21, 2007, 06:37:09 pm ---have done that one adjustment, but there are much more errors now. probably some more things got broken.

--- End quote ---
Oh dear... :-(


--- Quote from: killerbot on November 21, 2007, 06:37:09 pm ---EDIT : @Morton : were there out places where such things got removed ??

--- End quote ---
I need to double-check. I have the following resources: Squirell/SQPlus 2.1.0/1.9 original and C::B revision; Squirell/SQPlus 2.1.1/2.3 original and C::B revision. I am diffing them to see...


--- Quote from: killerbot on November 21, 2007, 06:37:09 pm ---EDIT : we could maybe simplify things by just following this suggestion :

--- End quote ---
Sure, this would probably be a good idea. It also reduces our modifications on the sources.


--- Quote from: killerbot on November 21, 2007, 06:37:09 pm ---just by looking at sqplus.h I see that a lot of SQInteger are now replaced by int. Were does SQIntegers put there by the original authors or were that CB adjustments which got lost in the update ??

--- End quote ---
This seems to hhave been done indeed by Yiannis that time. I think we should ask him and he will hopefully remember. If that's the case we need to replace int by SQInteger again. In addition the same applied to float vs. SQFloat (but only within the focus of SQPlus, not Squirrel).

With regards, Morten.

MortenMacFly:

--- Quote from: MortenMacFly on November 22, 2007, 10:05:28 am ---This seems to hhave been done indeed by Yiannis that time. I think we should ask him and he will hopefully remember. If that's the case we need to replace int by SQInteger again. In addition the same applied to float vs. SQFloat (but only within the focus of SQPlus, not Squirrel).

--- End quote ---
So - it seems Yiannis did that indeed. I will therefore apply the same modifications to SQPlus in SVN. Give me some time and try afterwards... ;-)

killerbot:
ok I will .... patience is a virtue  8) 8) 8) 8) 8)

MortenMacFly:

--- Quote from: killerbot on November 22, 2007, 10:52:06 am ---ok I will .... patience is a virtue  8) 8) 8) 8) 8)

--- End quote ---
So... guess what: I have done that but now C::B crashes on startup with a weired error message that has it's roots in wxScintilla...?!

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version