std.experimental.allocator optlink error
uiop via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Nov 9 17:04:15 PST 2015
On Monday, 9 November 2015 at 18:07:39 UTC, ref2401 wrote:
> On Monday, 9 November 2015 at 14:42:01 UTC, ref2401 wrote:
>> Hello
>>
>> I wrote a small hello world app and imported the
>> `std.experimental.allocator` module.
>> I'm getting the following optlink error:
>> ---------------------------------------------------
>> OPTLINK (R) for Win32 Release 8.00.17
>> Copyright (C) Digital Mars 1989-2013 All rights reserved.
>> http://www.digitalmars.com/ctg/optlink.html
>> console-app.obj(console-app)
>> Error 42: Symbol Undefined
>> _D3std12experimental9allocator12__ModuleInfoZ
>> --- errorlevel 1
>> ---------------------------------------------------
>> os: Windows 8.1 Enterprise
>> dmd: 2.069.0
>> build sript: dmd main.d -ofconsole-app.exe -debug -unittest
>> -wi
>>
>> Thank you.
>
> I tested it with my home laptop(Win 8.1 Pro). Same error.
> If I change `std.experimental.allocator` to
> `std.experimental.logger` then it builds fine.
Can you find the sources in your setup ? Any chance that that
phobos.lib is still the the one distributed with dmd 2.068 ? When
you setup dmd 2.069, did you use the 7z or installer ?
More information about the Digitalmars-d-learn
mailing list