www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Using tango with dub

reply albert-j <djftgls ifdflv.com> writes:
I am trying to use Tango in a dub project because I need a 
HashSet. I added Tango as a dependency to the dub.json, but now 
dub gives me a bunch of depreciation warnings and a few errors, 
like

../../../.dub/packages/tango-1.0.3_2.068/tango/tango/util/log/Log.d(349,51):
Error: undefined identifier '__va_argsave', did you mean struct
'__va_argsave_t'?

What am I missing?
Dec 17 2016
next sibling parent reply Jacob Carlborg <doob me.com> writes:
On 2016-12-17 16:46, albert-j wrote:
 I am trying to use Tango in a dub project because I need a HashSet. I
 added Tango as a dependency to the dub.json, but now dub gives me a
 bunch of depreciation warnings and a few errors, like

 ../../../.dub/packages/tango-1.0.3_2.068/tango/tango/util/log/Log.d(349,51):
 Error: undefined identifier '__va_argsave', did you mean struct
 '__va_argsave_t'?

 What am I missing?
It might not be compatible with that version of the compiler. Or are you using something that is not DMD? -- /Jacob Carlborg
Dec 17 2016
parent reply albert-j <djftgls ifdflv.com> writes:
Since I just do "dub build", I assume it invokes dmd? I have 
v2.072.0.
Dec 17 2016
parent reply Jacob Carlborg <doob me.com> writes:
On 2016-12-17 16:51, albert-j wrote:
 Since I just do "dub build", I assume it invokes dmd? I have v2.072.0.
Try an older version. -- /Jacob Carlborg
Dec 17 2016
parent reply albert-j <djftgls ifdflv.com> writes:
 Try an older version.
Before resorting to that, I am also trying to "dub build --compiler=gdc". Getting different types of errors: ../../../.dub/packages/tango-1.0.3_2.068/tango/tango/math/IEEE.d:614:17: error: instead of C-style syntax, use D-style syntax 'real[3][] vals' [-Werror] static real vals[][3] = // x,frexp,exp ... ^ cc1d: all warnings being treated as errors I tried to suppress the errors by adding buildRequirements:["allowWarnings", "silenceWarnings"] to dub.json, but no luck. Is it possible to get around them?
Dec 18 2016
parent Jacob Carlborg <doob me.com> writes:
On 2016-12-18 10:43, albert-j wrote:
 Try an older version.
Before resorting to that, I am also trying to "dub build --compiler=gdc". Getting different types of errors: ../../../.dub/packages/tango-1.0.3_2.068/tango/tango/math/IEEE.d:614:17: error: instead of C-style syntax, use D-style syntax 'real[3][] vals' [-Werror] static real vals[][3] = // x,frexp,exp ... ^ cc1d: all warnings being treated as errors I tried to suppress the errors by adding buildRequirements:["allowWarnings", "silenceWarnings"] to dub.json, but no luck. Is it possible to get around them?
I don't know. Seems like the -Werror flag is passed, somewhere. -- /Jacob Carlborg
Dec 18 2016
prev sibling parent reply bauss <jj_1337 live.dk> writes:
On Saturday, 17 December 2016 at 15:46:20 UTC, albert-j wrote:
 I am trying to use Tango in a dub project because I need a 
 HashSet. I added Tango as a dependency to the dub.json, but now 
 dub gives me a bunch of depreciation warnings and a few errors, 
 like

 ../../../.dub/packages/tango-1.0.3_2.068/tango/tango/util/log/Log.d(349,51):
Error: undefined identifier '__va_argsave', did you mean struct
'__va_argsave_t'?

 What am I missing?
I thought Tango was obsolete a long time ago. Is there a specific reason you need to use Tango and can't use Phobos?
Dec 17 2016
next sibling parent reply albert-j <djftgls ifdflv.com> writes:
 I thought Tango was obsolete a long time ago.

 Is there a specific reason you need to use Tango and can't use 
 Phobos?
I need a Set implementation and from what I understand there isn't one in Phobos right now?
Dec 17 2016
parent reply Soulsbane <paul acheronsoft.com> writes:
On Saturday, 17 December 2016 at 20:26:53 UTC, albert-j wrote:
 I thought Tango was obsolete a long time ago.

 Is there a specific reason you need to use Tango and can't use 
 Phobos?
I need a Set implementation and from what I understand there isn't one in Phobos right now?
Have you seen https://github.com/economicmodeling/containers it has a HashSet http://economicmodeling.github.io/containers/containers/hashset.HashSet.html
Dec 17 2016
parent albert-j <djftgls ifdflv.com> writes:
 Have you seen https://github.com/economicmodeling/containers it 
 has a HashSet 
 http://economicmodeling.github.io/containers/containers/hashset.HashSet.html
Just curious, how is it different from Tango's implementation?
Dec 18 2016
prev sibling parent Jacob Carlborg <doob me.com> writes:
On 2016-12-17 21:15, bauss wrote:

 I thought Tango was obsolete a long time ago.
It's a third party library like any other library. -- /Jacob Carlborg
Dec 18 2016