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):…
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 =…
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…
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:…
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…
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…
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…
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…
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…
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…
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.
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 -…
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…
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?