www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - how to use mango

reply "Jan Hanselaer" <jan.hanselaer gmail.com> writes:
Hi all,

I'am having trouble working with mango. Well actually the only thing I was 
able to do is download it from 
http://www.dsource.org/projects/mango/browser/trunk
But I don't know how to use it. Do I really have to compile each file one by 
one? Besides the first file I tried gave a compile error.
I tried to do it with build, but that didn't work out either (probably 
because that's new for me too).

I'd expect that I can use a library just by using some compiler option with 
the dmd compiler, but it seems to be a bit more complex.
Till now I only used the standard library and DFL, but the d-files using DFL 
are easy to compile with DFL.exe ...

I guess you can see at my questions I'm a newbie, so a step by step 
explanation of how I can use the mango library in my d programs would be 
cool!

Thanks in advance
Jan 
Apr 25 2007
parent reply Frank Benoit <keinfarbton googlemail.com> writes:
1.) install tango
2.) install dsss
3.) call "dsss net install mango"
4.) write your program
5.) create a dsss.conf file which contains;
[mysource.d]
6.) call "dsss build"
7.) run your program

Frank
Apr 25 2007
parent reply Frank Benoit <keinfarbton googlemail.com> writes:
Frank Benoit schrieb:
 1.) install tango
 2.) install dsss
2.1) in the tango dir call "dsss build" 2.2) in the tango dir call "dsss install"
 3.) call "dsss net install mango"
 4.) write your program
 5.) create a dsss.conf file which contains;
 [mysource.d]
 6.) call "dsss build"
 7.) run your program
 
 Frank
Apr 25 2007
parent reply "Jan Hanselaer" <jan.hanselaer gmail.com> writes:
 Frank Benoit schrieb:
 1.) install tango
 2.) install dsss
2.1) in the tango dir call "dsss build" 2.2) in the tango dir call "dsss install"
 3.) call "dsss net install mango"
 4.) write your program
 5.) create a dsss.conf file which contains;
 [mysource.d]
 6.) call "dsss build"
 7.) run your program

 Frank
So you can only use mango when Tango is installed?
Apr 25 2007
parent Frank Benoit <keinfarbton googlemail.com> writes:
 
 So you can only use mango when Tango is installed? 
 
 
There is an old branch that contains the old phobos compatible sources, but that means... - they probably do not compile with a modern DMD version - Bug fixes and enhancments are not going into this branch. => Yes, only with tango. This is how i understand it, but i am not the maintainer only a user. A simple example, on how to use this parser: Have a look into this simple BinToD tool (line 82..): http://www.dsource.org/projects/tioport/browser/trunk/bintod/bintod.d This parses files of this kind: http://www.dsource.org/projects/tioport/browser/trunk/swt-3.2.1-examples/resources_addressbook.xml
Apr 25 2007