Building with dub fails on Ubuntu 16.10.

2016-09-10 Thread Vlasov Roman via Digitalmars-d-learn
Hello, guys. I tried to build HelloWorld with dub, but i got strange linker error: Performing "debug" build using dmd for x86_64. test ~master: building configuration "application"... Linking... /usr/bin/ld: .dub/build/application-debug-linux.posix-x86_64-dmd_2071-0D6D3AB638EA28C55CFA241FFD9C

Re: Error: module ctype is in file 'std/ctype.d' which cannot be read - when running dmd

2016-06-24 Thread Roman via Digitalmars-d-learn
On Friday, 24 June 2016 at 21:06:30 UTC, cym13 wrote: On Friday, 24 June 2016 at 21:01:11 UTC, Roman wrote: I should probably add that only importing std.ctype causes the error. I have a bunch of other imports: import std.stdio, std.string, std.algorithm, std.conv, std.ctype, std.regex, s

Re: Error: module ctype is in file 'std/ctype.d' which cannot be read - when running dmd

2016-06-24 Thread Roman via Digitalmars-d-learn
I should probably add that only importing std.ctype causes the error. I have a bunch of other imports: import std.stdio, std.string, std.algorithm, std.conv, std.ctype, std.regex, std.range; If I remove std.ctype, it compiles just fine.

Error: module ctype is in file 'std/ctype.d' which cannot be read - when running dmd

2016-06-24 Thread Roman via Digitalmars-d-learn
I've just tried to compile a program with `rdmd`, but get the following error: count_words.d(1): Error: module ctype is in file 'std/ctype.d' which cannot be read import path[0] = . import path[1] = /home/roman/dlang/dmd-2.071.0/linux/bin64/../../src/phobos import path[2] = /

Re: Compilation with dub + dmd: out of memory

2015-02-10 Thread Vlasov Roman via Digitalmars-d-learn
On Tuesday, 10 February 2015 at 12:42:07 UTC, ketmar wrote: On Tue, 10 Feb 2015 11:44:09 +, Vlasov Roman wrote: On Tuesday, 10 February 2015 at 11:32:32 UTC, bearophile wrote: Vlasov Roman: I have the quite computer with 2 GB RAM. At compilation with dub and dmd of small project this pai

Re: Compilation with dub + dmd: out of memory

2015-02-10 Thread Vlasov Roman via Digitalmars-d-learn
On Tuesday, 10 February 2015 at 11:55:43 UTC, Daniel Kozák wrote: V Tue, 10 Feb 2015 11:44:09 + Vlasov Roman via Digitalmars-d-learn napsáno: On Tuesday, 10 February 2015 at 11:32:32 UTC, bearophile wrote: > Vlasov Roman: > >> I have the quite computer with 2 GB RAM. At

Re: Compilation with dub + dmd: out of memory

2015-02-10 Thread Vlasov Roman via Digitalmars-d-learn
On Tuesday, 10 February 2015 at 11:32:32 UTC, bearophile wrote: Vlasov Roman: I have the quite computer with 2 GB RAM. At compilation with dub and dmd of small project this pair eating about 1.4~1.5 GB RAM. I solve this probleb by connecting swap partition, but it calls some freezes + it take

Compilation with dub + dmd: out of memory

2015-02-10 Thread Vlasov Roman via Digitalmars-d-learn
I have the quite computer with 2 GB RAM. At compilation with dub and dmd of small project this pair eating about 1.4~1.5 GB RAM. I solve this probleb by connecting swap partition, but it calls some freezes + it take ~10% of swap, and after compilation swap not released. At switching off swap as

Re: Linking C library (.dll) to D on windows

2015-01-26 Thread Roman via Digitalmars-d-learn
On Monday, 26 January 2015 at 02:18:05 UTC, Mike Parker wrote: On 1/26/2015 5:45 AM, Roman wrote: Stuff: 1. There are C code module.c and module.h 2. MinGW 3. DMD 2.066.1 4. Window 8.1 module.c: #include "module.h" int add(int a, int b) {return a + b;} module.h: int add(int,int); I want to

Linking C library (.dll) to D on windows

2015-01-25 Thread Roman via Digitalmars-d-learn
Stuff: 1. There are C code module.c and module.h 2. MinGW 3. DMD 2.066.1 4. Window 8.1 module.c: #include "module.h" int add(int a, int b) {return a + b;} module.h: int add(int,int); I want to use function "add" from D so i call cc -shared module.c -o module.dll Then D code main.d: imp

Re: mixin template had error by calling shared function

2014-12-10 Thread Vlasov Roman via Digitalmars-d-learn
On Wednesday, 10 December 2014 at 10:34:25 UTC, Marc Schütz wrote: On Wednesday, 10 December 2014 at 09:41:43 UTC, Rikki Cattermole wrote: On 10/12/2014 10:10 p.m., Vlasov Roman wrote: I have this code import std.stdio; mixin template Template(void function() func1, void function() func2) {

mixin template had error by calling shared function

2014-12-10 Thread Vlasov Roman via Digitalmars-d-learn
I have this code import std.stdio; mixin template Template(void function() func1, void function() func2) { voidto() { func1(); func2(); } }; class SomeClass { mixin Template!(&func, &func23); void func() { w