www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - import std.random fails

reply "deed" <nomail nomail.no> writes:
----
import std.random

void main() {}
---

results in:

Error 42: Symbol Undefined
_D4core6memory2GC6qallocFkkZS4core6memory8BLkInfo_
Error 42: Symbol Undefined _D4core6memory2GC6extendFPvkkZk
Error 42: Symbol Undefined _D4core5bitop3bsrFNaNbkZi
--- errorlevel 3


What is wrong?
Aug 31 2012
next sibling parent "ixid" <nuaccount gmail.com> writes:
You're missing the semi-colon after import std.random.


import std.random;

void main() {}
Aug 31 2012
prev sibling next sibling parent "deed" <nomail nomail.no> writes:
On Friday, 31 August 2012 at 22:44:11 UTC, ixid wrote:
 You're missing the semi-colon after import std.random.

Sorry, typo. Semicolon is included in the file. DMD 2.060.
Aug 31 2012
prev sibling next sibling parent "Jonathan M Davis" <jmdavisProg gmx.com> writes:
On Saturday, September 01, 2012 00:40:25 deed wrote:
 ----
 import std.random
 
 void main() {}
 ---
 
 results in:
 
 Error 42: Symbol Undefined
 _D4core6memory2GC6qallocFkkZS4core6memory8BLkInfo_
 Error 42: Symbol Undefined _D4core6memory2GC6extendFPvkkZk
 Error 42: Symbol Undefined _D4core5bitop3bsrFNaNbkZi
 --- errorlevel 3
 
 
 What is wrong?

You druntime installation is bad due to some cruft left from a previous install (the installer obviously needs some work). If you used an installer, then uninstall dmd, make sure that it's completely removed, and then reinstall it. If you installed it manually, then make sure that you blow away druntime's import directory and then restore it with the current version of those files. - Jonathan M Davis
Aug 31 2012
prev sibling next sibling parent "deed" <nomail nomail.no> writes:
 You druntime installation is bad due to some cruft left from a 
 previous
 install (the installer obviously needs some work). If you used 
 an installer,
 then uninstall dmd, make sure that it's completely removed, and 
 then reinstall
 it.

 If you installed it manually, then make sure that you blow away 
 druntime's
 import directory and then restore it with the current version 
 of those files.

 - Jonathan M Davis

Thanks. Had not tried that and it sounds as a probable reason.
Aug 31 2012
prev sibling parent "deed" <nomail nomail.no> writes:
Reinstallation solved the case. Thanks for your prompt reply.
Aug 31 2012