Bug 4619 – Can't link with std.intrinsic function(s)

Status
RESOLVED
Resolution
INVALID
Severity
regression
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Windows
Creation time
2010-08-11T02:58:00Z
Last change time
2010-08-13T04:43:41Z
Assigned to
nobody
Creator
ingenu

Comments

Comment #0 by ingenu — 2010-08-11T02:58:01Z
With DMD2.047 & DMD2.048 when I import std.intrinsic and try to use bsr(...) , I get the following OptLink error: " Error 42: Symbol Undefined _D3std9intrinsic12__ModuleInfoZ"
Comment #1 by clugdbug — 2010-08-11T04:46:05Z
Please post a complete example. I cannot reproduce it on Win32.
Comment #2 by ingenu — 2010-08-12T07:37:29Z
(In reply to comment #1) > Please post a complete example. I cannot reproduce it on Win32. Here it is (DMD2.047 or DMD2.048 on Windows): " module main; import std.intrinsic; void main( char[][] args ) { int res = bsr( 2 ); } " Error message: " OPTLINK (R) for Win32 Release 8.00.2 Copyright (C) Digital Mars 1989-2009 All rights reserved. http://www.digitalmars.com/ctg/optlink.html Debug\FlExtEngine.obj(FlExtEngine) Error 42: Symbol Undefined _D3std9intrinsic12__ModuleInfoZ --- errorlevel 1 Building Debug\FlExtEngine.exe failed! "
Comment #3 by bearophile_hugs — 2010-08-12T07:44:55Z
It works for me with dmd 2.048 on Windows.
Comment #4 by ingenu — 2010-08-13T04:35:20Z
Ok I did create a fresh project and it does work too, I still get that problem in the old one, I'm not sure whether it's worth investigating... Can anyone tell me ?
Comment #5 by clugdbug — 2010-08-13T04:43:41Z
Maybe you were linking with the wrong library version?