Jump to page: 1 2
Thread overview
Using tango with dub
Dec 17, 2016
albert-j
Dec 17, 2016
Jacob Carlborg
Dec 17, 2016
albert-j
Dec 17, 2016
Jacob Carlborg
Dec 18, 2016
albert-j
Dec 18, 2016
Jacob Carlborg
Dec 17, 2016
bauss
Dec 17, 2016
albert-j
Dec 17, 2016
Soulsbane
Dec 18, 2016
albert-j
Dec 18, 2016
Jacob Carlborg
December 17, 2016
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
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
Since I just do "dub build", I assume it invokes dmd? I have v2.072.0.
December 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
December 17, 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?
December 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?


December 17, 2016
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
> 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
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
December 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
« First   ‹ Prev
1 2