LDC cannot compile this on linux

JD via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Sun Aug 24 09:53:39 PDT 2014


Hi all,

I have this simple program:

module testcase;

import std.stdio;
import std.net.curl;

void main()
{
	auto t = HTTP("http:/test");
	writeln("Will it compile?");
}

Trying to compile this on Centos 6 linux with DMD: dmd testcase.d 
-release -O -inline -w -L-lcurl
This works well.

When I try to compile this with LDC: ldmd2 testcase.d -release -O 
-inline -w -L-lcurl
the following error occurs:

/usr/local/include/d/std/mmfile.d(344): Deprecation: alias 
core.sys.posix.sys.mman.MAP_ANON is deprecated - Please use 
core.sys.linux.sys.mman for non-POSIX extensions

My LDC version is:
LDC - the LLVM D compiler (2d4956):
   based on DMD v2.065 and LLVM 3.2svn
   Default target: x86_64-unknown-linux-gnu
   Host CPU: core-avx-i

What am I doing wrong?

Thanks, Jeroen


More information about the digitalmars-d-ldc mailing list