Re: Cannot link with libphobos2.a with GCC 6.2 on Ubuntu 16.10

2016-10-24 Thread Martin Nowak via Digitalmars-d-learn
On Monday, 17 October 2016 at 11:55:03 UTC, Martin Nowak wrote: Please update the bug report. https://issues.dlang.org/show_bug.cgi?id=5278 Updated, but do I seriously have to do everything? I'm not even an Ubuntu user.

Re: Repeat and chunks

2016-10-24 Thread Meta via Digitalmars-d-learn
On Monday, 24 October 2016 at 16:17:03 UTC, ag0aep6g wrote: On 10/24/2016 05:59 PM, Meta wrote: repeat(8, 10).chunks(3).writeln(); This will throw an AssertError because 10 is not evenly divisible by 3. chunks doesn't require that the length of the range be evenly divisible by the chunk siz

Statically linking libphobos

2016-10-24 Thread _d0s_ via Digitalmars-d-learn
Hello, I am distributing a plugin written in D for another application. To make it easily distributable i would prefer to link libphobos statically. How would I do that and how would I do that with DUB? Thanks :)

Re: Repeat and chunks

2016-10-24 Thread Saurabh Das via Digitalmars-d-learn
On Monday, 24 October 2016 at 15:59:05 UTC, Meta wrote: On Monday, 24 October 2016 at 15:28:50 UTC, Saurabh Das wrote: [...] Yes, that's correct. This is the overload of `repeat` in question: https://dlang.org/phobos/std_range.html#.repeat.2 Take!(Repeat!T) repeat(T)(T value, size_t n); R

Re: Repeat and chunks

2016-10-24 Thread ag0aep6g via Digitalmars-d-learn
On 10/24/2016 05:59 PM, Meta wrote: repeat(8, 10).chunks(3).writeln(); This will throw an AssertError because 10 is not evenly divisible by 3. chunks doesn't require that the length of the range be evenly divisible by the chunk size. See https://dlang.org/phobos/std_range.html#.Chunks

Re: Repeat and chunks

2016-10-24 Thread ag0aep6g via Digitalmars-d-learn
On 10/24/2016 04:25 PM, Dorian Haglund wrote: The following code crashes with DMD64 D Compiler v2.071.2: import std.algorithm; import std.stdio; import std.range; int main() { repeat(8, 10).chunks(3).writeln(); return 0; } Looks like a bug. Doesn't happen with 2.072.0-b2, so it has appar

Re: Repeat and chunks

2016-10-24 Thread Meta via Digitalmars-d-learn
On Monday, 24 October 2016 at 15:28:50 UTC, Saurabh Das wrote: The documentation of https://dlang.org/phobos/std_range.html#.chunks mentions something about evenly divisible by chunkSize – perhaps that is the cause of the assert fail. Not 100% sure why that's there though. Thanks, Saurabh

Re: Repeat and chunks

2016-10-24 Thread Saurabh Das via Digitalmars-d-learn
On Monday, 24 October 2016 at 15:28:50 UTC, Saurabh Das wrote: On Monday, 24 October 2016 at 14:25:46 UTC, Dorian Haglund wrote: Hey, The following code crashes with DMD64 D Compiler v2.071.2: import std.algorithm; import std.stdio; import std.range; int main() { repeat(8, 10).chunks(3).wri

Re: Repeat and chunks

2016-10-24 Thread Saurabh Das via Digitalmars-d-learn
On Monday, 24 October 2016 at 14:25:46 UTC, Dorian Haglund wrote: Hey, The following code crashes with DMD64 D Compiler v2.071.2: import std.algorithm; import std.stdio; import std.range; int main() { repeat(8, 10).chunks(3).writeln(); return 0; } Error message: pure nothrow @nogc @safe

Repeat and chunks

2016-10-24 Thread Dorian Haglund via Digitalmars-d-learn
Hey, The following code crashes with DMD64 D Compiler v2.071.2: import std.algorithm; import std.stdio; import std.range; int main() { repeat(8, 10).chunks(3).writeln(); return 0; } Error message: pure nothrow @nogc @safe std.range.Take!(std.range.Repeat!(int).Repeat).Take std.range.Re

Re: How to get sqlite3.lib x64?

2016-10-24 Thread Andre Pany via Digitalmars-d-learn
On Monday, 24 October 2016 at 07:20:34 UTC, Vadim Lopatin wrote: In https://github.com/buggins/ddbc there are 32bit and 64bit windows libs and dlls for sqlite3: https://github.com/buggins/ddbc/tree/master/libs Thanks a lot John and Vadim. Kind regards André

Re: How to get sqlite3.lib x64?

2016-10-24 Thread Vadim Lopatin via Digitalmars-d-learn
On Monday, 24 October 2016 at 05:43:00 UTC, Andre Pany wrote: Hi, I try to get sqlite3.lib for 64 Bit windows os. I tried implib with the def file and the 64 Bit dll: implib sqlite3_implib.lib sqlite3.def /system -> App crash (Windows 10) With the dll file defined: implib sqlite3_implib.lib sq

Re: How to get sqlite3.lib x64?

2016-10-24 Thread John C via Digitalmars-d-learn
On Monday, 24 October 2016 at 05:43:00 UTC, Andre Pany wrote: Hi, I try to get sqlite3.lib for 64 Bit windows os. I tried implib with the def file and the 64 Bit dll: implib sqlite3_implib.lib sqlite3.def /system -> App crash (Windows 10) With the dll file defined: implib sqlite3_implib.lib sq