Error message:
||=== Code::Blocks - Unix, Squirrel ===|
include/scripting/include/squirrel.h|79|error: ‘SQUnsignedInteger’ does not name a type|
include/scripting/include/squirrel.h|84|error: ‘SQUnsignedInteger’ does not name a type|
include/scripting/include/squirrel.h|85|error: ‘SQInteger’ does not name a type|
include/scripting/include/squirrel.h|233|error: ‘SQInteger’ does not name a type|
include/scripting/include/squirrel.h|243|error: ‘SQRawObjectVal’ does not name a type|
include/scripting/include/squirrel.h|256|error: ‘SQInteger’ does not name a type|
[...]
||=== Build finished: 772 errors, 8 warnings ===|
The #ifdef's in squirrel.h seem to be broken.
No time to figure it out at the moment.
As the title said it was on a 64-bit linux and it was a standard-build via project-file, that means target is also 64-bit.
The following patch works for me, it readds the defines for 64-bit non-windows-platforms from the original squirrel.h.
But I do not know, if it can interfere with other changes made for 64-bit windows compatibility.
So I will not commit it, at least not without a check by Biplab, who made the changes for windows.
EDIT:
Does not work (only for my first error) !
I get the same linking error as described below.
--- tmp/tmpJqjCWW-meld/squirrel.h
+++ home/jens/codeblocks-build/codeblocks.trunk/src/include/scripting/include/squirrel.h
@@ -52,6 +52,10 @@
typedef long long SQInteger;
typedef unsigned long long SQUnsignedInteger;
typedef unsigned long long SQHash; /*should be the same size of a pointer*/
+#else /* all other 64-bit platforms */
+typedef long SQInteger;
+typedef unsigned long SQUnsignedInteger;
+typedef unsigned long SQHash; /*should be the same size of a pointer*/
#endif
typedef int SQInt32;
#else
sdk\scripting\lib\libsqstdlib.a(sqstdio.o)||In function `sqstd_register_iolib':|
C:\codeblocks\src\sdk\scripting\sqstdlib\sqstdio.cpp|398|undefined reference to `declare_stream(SQVM*, char const*, void*, char const*, tagSQRegFunction*, tagSQRegFunction*)'|
sdk\scripting\lib\libsqstdlib.a(sqstdblob.o)||In function `sqstd_register_bloblib':|
C:\codeblocks\src\sdk\scripting\sqstdlib\sqstdblob.cpp|249|undefined reference to `declare_stream(SQVM*, char const*, void*, char const*, tagSQRegFunction*, tagSQRegFunction*)'|
||=== Build finished: 2 errors, 0 warnings ===|
usually I just svn update, double click CodeBlocks.cbp, hit build and I get a new exe. I tried rebuilding to no avail as well.