Thread overview | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
December 17, 2016 Using tango with dub | ||||
---|---|---|---|---|
| ||||
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? |
December 17, 2016 Re: Using tango with dub | ||||
---|---|---|---|---|
| ||||
Posted in reply to albert-j | 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 |
December 17, 2016 Re: Using tango with dub | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | Since I just do "dub build", I assume it invokes dmd? I have v2.072.0. |
December 17, 2016 Re: Using tango with dub | ||||
---|---|---|---|---|
| ||||
Posted in reply to albert-j | 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 |
December 17, 2016 Re: Using tango with dub | ||||
---|---|---|---|---|
| ||||
Posted in reply to albert-j | 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?
|
December 17, 2016 Re: Using tango with dub | ||||
---|---|---|---|---|
| ||||
Posted in reply to bauss | > 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?
|
December 17, 2016 Re: Using tango with dub | ||||
---|---|---|---|---|
| ||||
Posted in reply to albert-j | 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 |
December 18, 2016 Re: Using tango with dub | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | > 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? |
December 18, 2016 Re: Using tango with dub | ||||
---|---|---|---|---|
| ||||
Posted in reply to albert-j | 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 |
Copyright © 1999-2021 by the D Language Foundation