digitalmars.D.learn - Using tango with dub
- albert-j (6/6) Dec 17 2016 I am trying to use Tango in a dub project because I need a
- Jacob Carlborg (5/12) Dec 17 2016 It might not be compatible with that version of the compiler. Or are you...
- albert-j (2/2) Dec 17 2016 Since I just do "dub build", I assume it invokes dmd? I have
- Jacob Carlborg (4/5) Dec 17 2016 Try an older version.
- albert-j (10/11) Dec 18 2016 Before resorting to that, I am also trying to "dub build
- Jacob Carlborg (4/17) Dec 18 2016 I don't know. Seems like the -Werror flag is passed, somewhere.
- bauss (4/10) Dec 17 2016 I thought Tango was obsolete a long time ago.
- albert-j (2/5) Dec 17 2016 I need a Set implementation and from what I understand there
- Soulsbane (4/10) Dec 17 2016 Have you seen https://github.com/economicmodeling/containers it
- albert-j (1/4) Dec 18 2016 Just curious, how is it different from Tango's implementation?
- Jacob Carlborg (4/5) Dec 18 2016 It's a third party library like any other library.
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
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
Since I just do "dub build", I assume it invokes dmd? I have v2.072.0.
Dec 17 2016
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
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
On 2016-12-18 10:43, albert-j wrote:I don't know. Seems like the -Werror flag is passed, somewhere. -- /Jacob CarlborgTry 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
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
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
On Saturday, 17 December 2016 at 20:26:53 UTC, albert-j wrote:Have you seen https://github.com/economicmodeling/containers it has a HashSet http://economicmodeling.github.io/containers/containers/hashset.HashSet.htmlI 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
Have you seen https://github.com/economicmodeling/containers it has a HashSet http://economicmodeling.github.io/containers/containers/hashset.HashSet.htmlJust curious, how is it different from Tango's implementation?
Dec 18 2016
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