digitalmars.D.learn - import std.random fails
- deed (11/11) Aug 31 2012 ----
- ixid (3/3) Aug 31 2012 You're missing the semi-colon after import std.random.
- deed (2/3) Aug 31 2012 Sorry, typo. Semicolon is included in the file. DMD 2.060.
- Jonathan M Davis (8/24) Aug 31 2012 You druntime installation is bad due to some cruft left from a previous
- deed (1/13) Aug 31 2012 Thanks. Had not tried that and it sounds as a probable reason.
- deed (1/1) Aug 31 2012 Reinstallation solved the case. Thanks for your prompt reply.
- ixid (8/37) Jan 05 2015 I am having this issue now. What else would I need to do other
- Rene Zwanenburg (2/43) Jan 06 2015 How do you build your program? Dmd, rdmd, Dub, etc.?
- ixid (3/48) Jan 06 2015 Dmd latest non-beta, with the latest VisualD. Debug build. Debug
- Rene Zwanenburg (7/9) Jan 06 2015 Hmm..
- ixid (4/13) Jan 07 2015 It seems to work fine with RDMD. I don't know if VisualD has a
---- 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
You're missing the semi-colon after import std.random. import std.random; void main() {}
Aug 31 2012
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
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
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 DavisThanks. Had not tried that and it sounds as a probable reason.
Aug 31 2012
Reinstallation solved the case. Thanks for your prompt reply.
Aug 31 2012
On Friday, 31 August 2012 at 22:52:13 UTC, Jonathan M Davis wrote:On Saturday, September 01, 2012 00:40:25 deed wrote:I am having this issue now. What else would I need to do other than uninstall and reinstall D on Windows to get it working? I tried that and it's not fixed it. Importing std.random in my own module which is in the project directory fails to find the symbol while importing std.algorithm works fine. Importing std.random in main.d works fine as well. Error 1 Error 42: Symbol Undefined _D7objects12__ModuleInfoZ---- 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
Jan 05 2015
On Monday, 5 January 2015 at 15:59:17 UTC, ixid wrote:On Friday, 31 August 2012 at 22:52:13 UTC, Jonathan M Davis wrote:How do you build your program? Dmd, rdmd, Dub, etc.?On Saturday, September 01, 2012 00:40:25 deed wrote:I am having this issue now. What else would I need to do other than uninstall and reinstall D on Windows to get it working? I tried that and it's not fixed it. Importing std.random in my own module which is in the project directory fails to find the symbol while importing std.algorithm works fine. Importing std.random in main.d works fine as well. Error 1 Error 42: Symbol Undefined _D7objects12__ModuleInfoZ---- 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
Jan 06 2015
On Tuesday, 6 January 2015 at 18:37:25 UTC, Rene Zwanenburg wrote:On Monday, 5 January 2015 at 15:59:17 UTC, ixid wrote:Dmd latest non-beta, with the latest VisualD. Debug build. Debug build and no additional or non default settings.On Friday, 31 August 2012 at 22:52:13 UTC, Jonathan M Davis wrote:How do you build your program? Dmd, rdmd, Dub, etc.?On Saturday, September 01, 2012 00:40:25 deed wrote:I am having this issue now. What else would I need to do other than uninstall and reinstall D on Windows to get it working? I tried that and it's not fixed it. Importing std.random in my own module which is in the project directory fails to find the symbol while importing std.algorithm works fine. Importing std.random in main.d works fine as well. Error 1 Error 42: Symbol Undefined _D7objects12__ModuleInfoZ---- 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
Jan 06 2015
On Tuesday, 6 January 2015 at 20:26:25 UTC, ixid wrote:Dmd latest non-beta, with the latest VisualD. Debug build. Debug build and no additional or non default settings.Hmm.. Did you verify that the D installation directory was completely empty after uninstalling? Does VisualD have some kind of verbose mode to show the exact command used to invoke DMD? What happens if you run rdmd on your main file?
Jan 06 2015
On Tuesday, 6 January 2015 at 20:49:34 UTC, Rene Zwanenburg wrote:On Tuesday, 6 January 2015 at 20:26:25 UTC, ixid wrote:It seems to work fine with RDMD. I don't know if VisualD has a verbose mode. Would this suggest the issue is with VisualD or with DMD settings in some way?Dmd latest non-beta, with the latest VisualD. Debug build. Debug build and no additional or non default settings.Hmm.. Did you verify that the D installation directory was completely empty after uninstalling? Does VisualD have some kind of verbose mode to show the exact command used to invoke DMD? What happens if you run rdmd on your main file?
Jan 07 2015