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"
Please post a complete example. I cannot reproduce it on Win32.
(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! "
It works for me with dmd 2.048 on Windows.
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 ?
Maybe you were linking with the wrong library version?