www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - std.experimental.allocator optlink error

reply ref2401 <refactor24 gmail.com> writes:
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.
Nov 09 2015
next sibling parent reply ref2401 <refactor24 gmail.com> writes:
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.
Nov 09 2015
parent reply uiop <uiop uiop.uiop.fi> writes:
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 ?
Nov 09 2015
next sibling parent Xiaoxi <xiaoxi 163.com> writes:
On Tuesday, 10 November 2015 at 01:04:16 UTC, uiop wrote:
 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 ?
i have the same issue. i used the installer. i only have one d installation...
Nov 10 2015
prev sibling parent reply ref2401 <refactor24 gmail.com> writes:
On Tuesday, 10 November 2015 at 01:04:16 UTC, uiop wrote:
 Can you find the sources in your setup ? Any chance that that 
 phobos.lib is still the the one distributed with dmd 2.068 ?
How can I do that?
 When you setup dmd 2.069, did you use the 7z or installer ?
Installer always btw. Thanks for response. I started thinking nobody cares.
Nov 10 2015
parent reply ref2401 <refactor24 gmail.com> writes:
On Tuesday, 10 November 2015 at 08:48:37 UTC, ref2401 wrote:
 On Tuesday, 10 November 2015 at 01:04:16 UTC, uiop wrote:
 Can you find the sources in your setup ? Any chance that that 
 phobos.lib is still the the one distributed with dmd 2.068 ?
How can I do that?
 When you setup dmd 2.069, did you use the 7z or installer ?
Installer always btw. Thanks for response. I started thinking nobody cares.
I downloaded the `dmd.2.069.0.windows.7z` file and replaced `phobos.lib` with one from the 7z package. Still getting the error.
Nov 10 2015
parent reply uiop <uiop uiop.uiop.fi> writes:
On Tuesday, 10 November 2015 at 10:34:56 UTC, ref2401 wrote:
 On Tuesday, 10 November 2015 at 08:48:37 UTC, ref2401 wrote:
 On Tuesday, 10 November 2015 at 01:04:16 UTC, uiop wrote:
 Can you find the sources in your setup ? Any chance that that 
 phobos.lib is still the the one distributed with dmd 2.068 ?
How can I do that?
 When you setup dmd 2.069, did you use the 7z or installer ?
Installer always btw. Thanks for response. I started thinking nobody cares.
I downloaded the `dmd.2.069.0.windows.7z` file and replaced `phobos.lib` with one from the 7z package. Still getting the error.
Wow, that would be an incredible error in the distribution ! Waiting for more confirmation to open a bugzilla issue. Otherwise if you are really sure open a ticket yourself.
Nov 10 2015
parent reply Rikki Cattermole <alphaglosined gmail.com> writes:
On 11/11/15 12:05 AM, uiop wrote:
 On Tuesday, 10 November 2015 at 10:34:56 UTC, ref2401 wrote:
 On Tuesday, 10 November 2015 at 08:48:37 UTC, ref2401 wrote:
 On Tuesday, 10 November 2015 at 01:04:16 UTC, uiop wrote:
 Can you find the sources in your setup ? Any chance that that
 phobos.lib is still the the one distributed with dmd 2.068 ?
How can I do that?
 When you setup dmd 2.069, did you use the 7z or installer ?
Installer always btw. Thanks for response. I started thinking nobody cares.
I downloaded the `dmd.2.069.0.windows.7z` file and replaced `phobos.lib` with one from the 7z package. Still getting the error.
Wow, that would be an incredible error in the distribution ! Waiting for more confirmation to open a bugzilla issue. Otherwise if you are really sure open a ticket yourself.
One already exists. I've confirmed it in the build scripts. It only effects Windows.
Nov 10 2015
parent reply Tofu Ninja <emmons0 purdue.edu> writes:
On Tuesday, 10 November 2015 at 11:39:56 UTC, Rikki Cattermole 
wrote:
 One already exists.
 I've confirmed it in the build scripts. It only effects Windows.
Any fix for this right now?
Nov 20 2015
next sibling parent reply Rikki Cattermole <alphaglosined gmail.com> writes:
On 21/11/15 1:31 AM, Tofu Ninja wrote:
 On Tuesday, 10 November 2015 at 11:39:56 UTC, Rikki Cattermole wrote:
 One already exists.
 I've confirmed it in the build scripts. It only effects Windows.
Any fix for this right now?
Dunno if its been fixed in ~master (doubt it), but all you need to do in your code, is copy it in. I've personally marked (well voted anyway) for this bug to be critical. It seems I'm the only one who thinks this is worth its own point release *shrugs*.
Nov 20 2015
parent Tofu Ninja <emmons0 purdue.edu> writes:
On Friday, 20 November 2015 at 12:49:02 UTC, Rikki Cattermole 
wrote:
 Dunno if its been fixed in ~master (doubt it), but all you need 
 to do in your code, is copy it in.
Cool, that worked.
 I've personally marked (well voted anyway) for this bug to be 
 critical.
 It seems I'm the only one who thinks this is worth its own 
 point release *shrugs*.
Yeah this is a pretty big oversight and seems like it should be fixed asap.
Nov 20 2015
prev sibling parent Ilya Yaroshenko <ilyayaroshenko gmail.com> writes:
On Friday, 20 November 2015 at 12:31:37 UTC, Tofu Ninja wrote:
 On Tuesday, 10 November 2015 at 11:39:56 UTC, Rikki Cattermole 
 wrote:
 One already exists.
 I've confirmed it in the build scripts. It only effects 
 Windows.
Any fix for this right now?
No, https://issues.dlang.org/show_bug.cgi?id=15281
Nov 20 2015
prev sibling parent reply Dustin Walker <dustin.walker email.wsu.edu> writes:
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 am having this issue as well. Just used the Windows DMD installer 1 hour ago. Tried this:
dmd jmtg\src\Permanent.d jmtg\src\Color.d
OPTLINK (R) for Win32 Release 8.00.17 Copyright (C) Digital Mars 1989-2013 All rights reserved. http://www.digitalmars.com/ctg/optlink.html OPTLINK : Warning 23: No Stack Permanent.obj(Permanent) Error 42: Symbol Undefined _D14TypeInfo_Class6__vtblZ Permanent.obj(Permanent) Error 42: Symbol Undefined _D6Object7__ClassZ Permanent.obj(Permanent) Error 42: Symbol Undefined _D6object6Object8opEqualsMFC6ObjectZb Permanent.obj(Permanent) Error 42: Symbol Undefined _D6object6Object5opCmpMFC6ObjectZi Permanent.obj(Permanent) Error 42: Symbol Undefined _D6object6Object8toStringMFZAya Permanent.obj(Permanent) Error 42: Symbol Undefined _D6object6Object6toHashMFNbNeZk OPTLINK : Warning 134: No Start Address --- errorlevel 6
Nov 10 2015
parent Rikki Cattermole <alphaglosined gmail.com> writes:
On 11/11/15 5:17 PM, Dustin Walker 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 am having this issue as well. Just used the Windows DMD installer 1 hour ago. Tried this:
 dmd jmtg\src\Permanent.d jmtg\src\Color.d
OPTLINK (R) for Win32 Release 8.00.17 Copyright (C) Digital Mars 1989-2013 All rights reserved. http://www.digitalmars.com/ctg/optlink.html OPTLINK : Warning 23: No Stack Permanent.obj(Permanent) Error 42: Symbol Undefined _D14TypeInfo_Class6__vtblZ Permanent.obj(Permanent) Error 42: Symbol Undefined _D6Object7__ClassZ Permanent.obj(Permanent) Error 42: Symbol Undefined _D6object6Object8opEqualsMFC6ObjectZb Permanent.obj(Permanent) Error 42: Symbol Undefined _D6object6Object5opCmpMFC6ObjectZi Permanent.obj(Permanent) Error 42: Symbol Undefined _D6object6Object8toStringMFZAya Permanent.obj(Permanent) Error 42: Symbol Undefined _D6object6Object6toHashMFNbNeZk OPTLINK : Warning 134: No Start Address --- errorlevel 6
Different issue. You are missing the main function.
Nov 10 2015