Forum Navigation
Not able to compile phobos code after installing Tango
Posted: 07/25/09 10:59:22Hi there everyone, I'm absolutely new to D (comming form Java), I'd like to ask something which I'm not sure if it's been answered before. After installing Tango on my Ubuntu box (both 32 and 64 bit) I can't compile even the simplest program which uses the Phobos library. eg:
import std.stdio; void main() { writef("Hello"); }when I try to compile that with gdc main.d -o main -fversion=Posix it produces the following error
/usr/lib/gcc/x86_64-linux-gnu/4.2.4/../../../../include/d/4.2.4/std/utf.d:49: Error: identifier 'Error' is not defined /usr/lib/gcc/x86_64-linux-gnu/4.2.4/../../../../include/d/4.2.4/std/utf.d:49: Error: Error is used as a type /usr/lib/gcc/x86_64-linux-gnu/4.2.4/../../../../include/d/4.2.4/std/utf.d:49: class std.utf.UtfError base type must be class or interface, not void /usr/lib/gcc/x86_64-linux-gnu/4.2.4/../../../../include/d/4.2.4/std/array.d:6: Error: identifier 'Error' is not defined /usr/lib/gcc/x86_64-linux-gnu/4.2.4/../../../../include/d/4.2.4/std/array.d:6: Error: Error is used as a type /usr/lib/gcc/x86_64-linux-gnu/4.2.4/../../../../include/d/4.2.4/std/array.d:6: class std.array.ArrayBoundsError base type must be class or interface, not void /usr/lib/gcc/x86_64-linux-gnu/4.2.4/../../../../include/d/4.2.4/std/string.d:818: Error: identifier 'string' is not defined /usr/lib/gcc/x86_64-linux-gnu/4.2.4/../../../../include/d/4.2.4/std/string.d:818: Error: string is used as a type /usr/lib/gcc/x86_64-linux-gnu/4.2.4/../../../../include/d/4.2.4/std/string.d:818: Error: identifier 'string' is not defined /usr/lib/gcc/x86_64-linux-gnu/4.2.4/../../../../include/d/4.2.4/std/string.d:818: Error: string is used as a type /usr/lib/gcc/x86_64-linux-gnu/4.2.4/../../../../include/d/4.2.4/std/string.d:818: Error: cannot have parameter of type void /usr/lib/gcc/x86_64-linux-gnu/4.2.4/../../../../include/d/4.2.4/std/string.d:894: Error: identifier 'string' is not defined /usr/lib/gcc/x86_64-linux-gnu/4.2.4/../../../../include/d/4.2.4/std/string.d:894: Error: string is used as a type /usr/lib/gcc/x86_64-linux-gnu/4.2.4/../../../../include/d/4.2.4/std/string.d:894: Error: identifier 'string' is not defined /usr/lib/gcc/x86_64-linux-gnu/4.2.4/../../../../include/d/4.2.4/std/string.d:894: Error: string is used as a type /usr/lib/gcc/x86_64-linux-gnu/4.2.4/../../../../include/d/4.2.4/std/string.d:894: Error: cannot have parameter of type void /usr/lib/gcc/x86_64-linux-gnu/4.2.4/../../../../include/d/4.2.4/std/format.d:75: Error: identifier 'Error' is not defined /usr/lib/gcc/x86_64-linux-gnu/4.2.4/../../../../include/d/4.2.4/std/format.d:75: Error: Error is used as a type /usr/lib/gcc/x86_64-linux-gnu/4.2.4/../../../../include/d/4.2.4/std/format.d:75: class std.format.FormatError base type must be class or interface, not voidIs that due to the Phobos - Tango incompatibility issue or may it be something else?.