Forum Navigation
Tango on 64bit Linux
Posted: 05/14/07 19:58:11 Modified: 05/14/07 19:58:35Hello all,
First of all, I managed to get Tango compiled and installed without to much of a hassle and also got rebuild going, however, there is something of an issue with varargs. The following code:
void main() { int[] samples = ([47, 51, 50, 48, 50, 50, 52, 49, 54, 43].dup).sort; int[] inRange = samples[samples.lbound( 50 ) .. samples.ubound( 50 )]; foreach( i, s; samples ) Stdout( i )( " = " )( s ).newline; Stdout.newline; Stdout( "There were " )( inRange.length )( " matches: " ); foreach( i, s; inRange ) Stdout ( s )( ' ' ); Stdout.newline; }Doesn't compile properly using GDC, now I don't know whether this is a GDC issue or a Tango issue, though it looks to be a tango issue. This is the output of the compilation:
$ rebuild mytestprogram.d WARNING: Module mytestprogram.d does not have a module declaration. This can cau se problems with rebuild's -oq option. If an error occurs, fix this first. /usr/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.1.1/../../../../include/d/4.1.1/t ango/io/Print.d:120: function tango.text.convert.Layout.Layout!(char).Layout.con vert (char[],...) does not match parameter types (uint delegate(char[]),TypeInfo [],ubyte[24][1],char[]) /usr/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.1.1/../../../../include/d/4.1.1/t ango/io/Print.d:120: Error: cannot implicitly convert expression (_argptr) of ty pe ubyte[24][1] to char* /usr/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.1.1/../../../../include/d/4.1.1/t ango/io/Print.d:132: function tango.text.convert.Layout.Layout!(char).Layout.con vert (char[],...) does not match parameter types (uint delegate(char[]),TypeInfo [],ubyte[24][1],char[]) /usr/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.1.1/../../../../include/d/4.1.1/t ango/io/Print.d:132: Error: cannot implicitly convert expression (_argptr) of ty pe ubyte[24][1] to char* /usr/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.1.1/../../../../include/d/4.1.1/t ango/io/Print.d:165: function tango.text.convert.Layout.Layout!(char).Layout.con vert (char[],...) does not match parameter types (uint delegate(char[]),TypeInfo [],ubyte[24][1],char[]) /usr/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.1.1/../../../../include/d/4.1.1/t ango/io/Print.d:165: Error: cannot implicitly convert expression (_argptr) of ty pe ubyte[24][1] to char* /usr/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.1.1/../../../../include/d/4.1.1/t ango/text/convert/Layout.d:129: function tango.text.convert.Layout.Layout!(char) .Layout.convert (char[],...) does not match parameter types (TypeInfo[],ubyte[24 ][1],char[]) /usr/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.1.1/../../../../include/d/4.1.1/t ango/text/convert/Layout.d:129: Error: cannot implicitly convert expression (_arguments) of type TypeInfo[] to uint delegate(char[]) /usr/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.1.1/../../../../include/d/4.1.1/t ango/text/convert/Layout.d:129: Error: cannot implicitly convert expression (_argptr) of type ubyte[24][1] to TypeInfo[] /usr/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.1.1/../../../../include/d/4.1.1/t ango/text/convert/Layout.d:129: Error: cannot implicitly convert expression (formatStr) of type char[] to char* /usr/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.1.1/../../../../include/d/4.1.1/t ango/text/convert/Layout.d:129: Error: expected 4 arguments, not 3 /usr/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.1.1/../../../../include/d/4.1.1/t ango/text/convert/Layout.d:129: Error: cannot implicitly convert expression ((th is.convert)(cast(uint delegate(char[]))_arguments,cast(TypeInfo[])_argptr,cast(char*)formatStr)) of type uint to char[] /usr/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.1.1/../../../../include/d/4.1.1/t ango/text/convert/Layout.d:138: function tango.text.convert.Layout.Layout!(char).Layout.convert (char[],...) does not match parameter types (uint delegate(char[]),TypeInfo[],ubyte[24][1],char[]) /usr/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.1.1/../../../../include/d/4.1.1/t ango/text/convert/Layout.d:138: Error: cannot implicitly convert expression (_argptr) of type ubyte[24][1] to char*Any suggestions?
Sjoerd
How C++ became ancient