Questions tagged [dmd]

Dmd stands for the Digital Mars D compiler.

The reference D compiler.

Usage:

Use as a generic tag.

199 questions
0
votes
1 answer

Linker failed in D compiler (dmd)

I do not know how to fix this error, please help me to fix this problem. RDMD volt lib/src/volta/parser/base.d(470): Deprecation: opSub is deprecated. Use opBinary(string op)(...) if (op == "-") instead. lib/src/volta/ir/location.d(130):…
Enty AV
  • 65
  • 4
0
votes
1 answer

How to link a lib written in D to use it with a program written in C, under Windows, using MinGW GCC?

I would like to use a library written in D for a C program compilable with MinGW GCC, for Windows. Here are the codes: dll.d extern (C) int dsquare(int n) nothrow { return n * n; } main.c #include int main() { int res =…
Foxy
  • 980
  • 8
  • 17
0
votes
0 answers

Debugging Segmentation Fault for D program using LLDB

I'm currently trying to debug a Segmentation Fault: 11 on Mac in an executable produced by the DMD compiler, using LLDB. The thing is I'm quite lost since I'm not too familiar with debugging tools. All I do is start lldb with my binary and then…
Dr.Kameleon
  • 22,532
  • 20
  • 115
  • 223
0
votes
1 answer

Linker error for core.sys.windows.winuser imports when compiling as 64 bit

I'm getting a linker error when compiling with DMD -m64 that I don't get as 32 bit. I'm importing ShowWindow from core.sys.windows.winuser, and I get the following: C:\D\dmd2\windows\bin\lld-link.exe: warning: main.obj: undefined symbol:…
Jacob Birkett
  • 1,927
  • 3
  • 24
  • 49
0
votes
1 answer

Dynamic Mode Decomposition using the modred module in python

I am trying to write a code for dynamic mode decomposition using the modred module in python. I write the CustomVector class and CustomVecHandle class folowing the modred Documentation like these: class CustomVector(mr.Vector): def…
sunxx
  • 1
  • 2
0
votes
0 answers

Dlang DMD floating-point exception

I downloaded the 64-bit Dlang DMD Fedora/CentOS package and installed inside a virtual 64-bit Scientific Linux machine using rpm -i. Works just fine. Moving to a 64-bit SL physical machine, I installed the same package but running dmd or rdmd even…
3bdalla
  • 407
  • 1
  • 10
  • 28
0
votes
1 answer

Why std lib from GDC is not the same that phobos from DMD

For example, I can not compile using GDC 5.2.0 (2016-02-05T11:17:49.3234388) a program importing std.meta because that file is not found. I was comparing the include folders between GDC and DMD and I found a great mismatch of…
0
votes
0 answers

DMD version for Mac 10.5.8

Could someone please tell me which version of DMD to install on Mac 10.5.8? I can't find a minimum-system-requirements document anywhere. Thanks.
babon
  • 3,615
  • 2
  • 20
  • 20
0
votes
2 answers

D case insensitive associative array?

Is it possible? I'm building a REST Api with vibe.d and implementing token authentication. Because I'm not aware in which casing the user will send me Authorization header parameter, I need to query it in case insensitive manner. For…
Davita
  • 8,928
  • 14
  • 67
  • 119
0
votes
1 answer

(dlang, GtkD) Using menubar

I copied the code in this site(https://sites.google.com/site/gtkdtutorial/#chapter2_2) and compiled it by dmd2. import gtk.MainWindow; import gtk.Box; import gtk.Main; import gtk.Menu; import gtk.MenuBar; import gtk.MenuItem; import…
user3764269
0
votes
0 answers

Socket connection/read timeout

I'd like to create socket with connection timeout or read timeout. I'm trying like this: Socket sock = new TcpSocket(new InternetAddress(domain, port)); sock.setOption(SocketOptionLevel.SOCKET,SocketOption.RCVTIMEO, dur!"seconds"(5)); (...) It…
0
votes
1 answer

How to setup output folder for dmd?

How to set output folder (obj, ext, etc..) for digital mars compiler (a.k.a. 'dmd') (on windows) in command line (not in Visual D)? I found -of for setting an executable name.
Denis Gladkiy
  • 2,084
  • 1
  • 26
  • 40
0
votes
1 answer

Scons and dmd error: unrecognized file extension o

I am trying to build a "hello world" D project with SConstruct and getting this output: D:\projects\test>scons scons: Reading SConscript files ... scons: done reading SConscript files. scons: warning: No version of Visual Studio compiler found -…
0
votes
2 answers

D tool ddemangle.d doesn't change output from DMD+GNU ld linking Errors

I'm trying to demangle my linking errors such as dmd -debug -gc -unittest -D -Dd/home/per/.emacs.d/auto-builds/dmd/Debug-Boundscheck-Unittest/home/per/Work/cognia/ -w ~/Work/cognia/t_geometry.d…
Nordlöw
  • 11,838
  • 10
  • 52
  • 99
0
votes
2 answers

Version identifier switch for GNU D Compiler (GDC)

Seems that GDC does not support -version= switch, like DMD does. --version or -v do not work either. How do I instruct compiler to use given version identifier?
Pavel Kirienko
  • 1,162
  • 1
  • 15
  • 31
1 2 3
13
14