Questions tagged [gdc]

The D Programming Language front-end for the GCC compiler. Allows the compilation of D source code using GCC. While it isn’t an official part of GCC, it is actively maintained.

59 questions
4
votes
1 answer

gnu Makefile for gdc

Can someone please fill me in on how one would go about building a Makefile to compile *.d sources with gdc? Specifically, I have built the Android NDK, gcc, binutils with D support via GDC (had to modify some of libphobos to support Bionic…
dwerner
  • 6,462
  • 4
  • 30
  • 44
4
votes
2 answers

Compiling With LDC2 and GDC

I had ldc2 and gdc compiled from source and working up until a month ago. Nothing has changed, except I can't remember the variable(s) I would set in the terminal to get ldc2 and gdc to work. I get the following errors when trying to compile D…
Arlen
  • 6,641
  • 4
  • 29
  • 61
4
votes
1 answer

Linking to DerelictGL3 with GDC

TL;DR: How do I get from having the source for DerelictGL3 et al, to linking to it, with GDC? Detailed complaints: I have a small program written in D. (http://dlang.org) module controller; import std.stdio; import std.conv; import…
kd8azz
  • 613
  • 5
  • 21
4
votes
1 answer

dmd and gdc compiling code differently?

I am currently trying out DerelictSDL2 (a binding to the SDL2 library for D) and I've written a code that successfully loads a JPG image and displays it in a window. That is, when it's compiled with dmd. When I try with gdc (and no code…
4
votes
2 answers

Is @nogc attribute implemented in d?

I made a little program in D that computes Fibonacci's numbers. It was supposed to be the most efficient possible, as I did this to compare D's speed of execution to that of other languages. Then I read about the @nogc attribute at dlang.org (here :…
3
votes
1 answer

issues configuring G-WAN to use D2

I've downloaded, compiled and installed gdc from it's bitbucket repository. Then I downloaded, extracted and ran G-WAN from it's site. I can now compile D2 code using gdc and it runs fine, and I can use G-WAN to load c-script in my browser. When I…
Jean-Bernard Pellerin
  • 12,556
  • 10
  • 57
  • 79
3
votes
1 answer

GDC D2 Compile: undefined reference to `_Unwind_SjLj_XYZ'

I just downloaded GDC (gcc-4.5.2-tdm-1-gdc-r575-20110723.zip) to use with MinGW-w32, and upon trying to compile/link a file, I got these errors: C:\crossdev\gdc\v2\build\mingw32\libphobos/../../../gcc-4.5.2/libphobos/gcc/deh.d:167: undefined…
user541686
  • 205,094
  • 128
  • 528
  • 886
3
votes
1 answer

Playground - The relationship between DispatchQueue and DispatchSemaphore

I am confused with DispatchQueue and DispatchSemaphore.Like the following example: let semaphore : DispatchSemaphore = DispatchSemaphore(value:1) for i in 1...40 { DispatchQueue.global().async{ semaphore.wait() …
Leo
  • 835
  • 1
  • 12
  • 31
3
votes
0 answers

Is there I can get GDC to give me source code with all templates expanded, but no other work done?

Suppose I have a file foo.d which instantiates a bunch of templates. Is there any way I can ask GDC (specifically) to give me foo.d with all its templates instantiated, but nothing else done? The GCC -E option obviously doesn't work, as D templates…
Koz Ross
  • 3,040
  • 2
  • 24
  • 44
3
votes
1 answer

How do I unbuffer input with the D programming language in linux?

By default you can't get the terminal input in Unix without waiting for the User to press enter. How can I get the input instantly? I am using gdc on debian Linux so I can't use ncurses. Thanks.
3
votes
1 answer

Should I ensure my code compiles with both DMD and GDC?

I guess partially equivalent question: Should code that compiles with DMD, automatically compile in all circumstances with GDC? I ask because I'm having issues getting a modern version of GDC installed from ubuntu 10.4 (seemingly cyclic…
deltaluca
  • 1,652
  • 2
  • 10
  • 9
2
votes
1 answer

Where is D's `std.sumtype`?

I'm working on a project in the D language and I want to use a module from the standard library called std.sumtype. I'm on debian oldstable, and I've tried both GDC and LDC. DMD is unavailable, because I'm using a machine with an armhf architecture.…
VintiumDust
  • 95
  • 1
  • 6
2
votes
3 answers

Is addsubview on iOS thread safe?

I'm using Apple's Page Control sample and my UIScrollview isn't smooth when scrolling. I'm thinking about using GCD. I believe that all my code is thread safe, except for my last line which is [self.scrollView addSubview:myView]. The docs that I…
user604352
  • 63
  • 4
2
votes
4 answers

Compiling GDC on Windows -- where to get GMP and MPFR dependencies?

I'm trying to compile GDC (v2) on Windows 7, using MinGW's MSYS. When I get to this step: $ ../configure --enable-languages=d --disable-shared --disable-bootstrap I get: checking build system type... i686-pc-mingw32 checking host system type...…
user541686
  • 205,094
  • 128
  • 528
  • 886
2
votes
1 answer

D - friendlier asm syntactic sugar for GDC (Dlang)

I had an idea to ease the process of creating D plus asm code using GDC's extended asm syntax. I'd like to get rid of the need to insert \n\t markers all over the place by, say, having separate strings and getting the D compiler to concatenate them.…
Cecil Ward
  • 597
  • 2
  • 13