D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 4619 - Can't link with std.intrinsic function(s)
Summary: Can't link with std.intrinsic function(s)
Status: RESOLVED INVALID
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: x86_64 Windows
: P2 regression
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-11 02:58 UTC by Rodéric Vicaire
Modified: 2010-08-13 04:43 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Rodéric Vicaire 2010-08-11 02:58:01 UTC
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 Don 2010-08-11 04:46:05 UTC
Please post a complete example. I cannot reproduce it on Win32.
Comment 2 Rodéric Vicaire 2010-08-12 07:37:29 UTC
(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 bearophile_hugs 2010-08-12 07:44:55 UTC
It works for me with dmd 2.048 on Windows.
Comment 4 Rodéric Vicaire 2010-08-13 04:35:20 UTC
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 Don 2010-08-13 04:43:41 UTC
Maybe you were linking with the wrong library version?