Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

import problem: tango.text.text

Moderators: kris

Posted: 11/22/08 12:01:27

Hello all,

I have installed DWT exactly as described in their instructions. For the Tango download step, I grabbed the tango-0.99.7-bin-win32-dmd.1.033.zip and extracted it as instructed. I assume everything was done correct because I can import and use tango modules. When I try to import 'tango.text.text', however, it gives me an error. Here are two examples, one that works and one that does not work:

/*
	test.d - built with 'dsss build'
	
	dsss.conf contains:
		[test.d]
		target=test	
*/

module test;

import tango.io.Console;
import tango.io.FileConduit;
import tango.io.protocol.Reader;
import tango.io.Stdout;

void main()
{}

the above 'test' example works fine, now for 'test2':

/*
	test2.d - built with 'dsss build'
	
	dsss.conf contains:
		[test2.d]
		target=test2	
*/

module test2;

import tango.text.text;

void main()
{}

The test2 example above gives the following error as copied from my command line output:

test2.d(11): module tango.text.Text is in multiple packages tango.text.Text
Command C:\d\dsss\bin\rebuild.exe returned with code 1, aborting.
Error: Command failed, aborting.

Am I doing something ridiculously wrong? If you can help in any way, I do appreciate it.

Thanks, Zane

わたしがプログラマだよ!

Author Message

Posted: 11/22/08 19:20:56

try

import tango.text.Text;

instead. It is case-sensitive :)

Posted: 11/22/08 20:20:47

For reals? Man I need more sleep...

Seriously, thanks a lot for the help.

Zane

わたしがプログラマだよ!