Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
April 25, 2007 how to use mango | ||||
---|---|---|---|---|
| ||||
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 |
April 25, 2007 Re: how to use mango | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jan Hanselaer | 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 |
April 25, 2007 Re: how to use mango | ||||
---|---|---|---|---|
| ||||
Posted in reply to Frank Benoit | 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 |
April 25, 2007 Re: how to use mango | ||||
---|---|---|---|---|
| ||||
Posted in reply to Frank Benoit | > 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?
|
April 25, 2007 Re: how to use mango | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jan Hanselaer | > > 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 |
Copyright © 1999-2021 by the D Language Foundation